-
Notifications
You must be signed in to change notification settings - Fork 1
/
pipeline.yml
162 lines (145 loc) · 3.28 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Solidity-CI Concourse Pipeline
---
groups:
- name: solidity-contracts
jobs: [unit, rinkeby, mainnet]
- name: semver
jobs: [deployed, versioning, commit]
- name: prs
jobs: [pr-mythx]
resource_types:
- name: pull-request
type: registry-image
source:
repository: jtarchie/pr
- name: github-status
type: registry-image
source:
repository: resource/github-status
resources:
- name: eth-dapp-ci
type: git
source:
uri: https://github.com/sambacha/eth-dapp-ci
branch: master
- name: version
type: semver
source:
driver: git
initial_version: 0.0.0
uri: git@github.com:sambacha/eth-dapp-ci
branch: version
file: version
private_key: ((repo_private_key))
- name: release-notes
type: git
source:
uri: https://github.com/sambacha/eth-dapp-ci
branch: version
- name: ethereum-dapp-rel
type: github-release
source:
owner: sambacha
repository: eth-dapp-ci
access_token: ((releases_access_token))
- name: ethereum-dapp-pr
type: pull-request
source:
repo: sambacha/eth-dapp-ci
access_token: ((prs_access_token))
- name: gh-status
type: github-status
source:
repo: sambacha/eth-dapp-ci
access_token: ((prs_access_token))
jobs:
- name: unit
public: true
plan:
- get: eth-dapp-ci
version: every
trigger: true
- put: gh-status
params: {path: eth-dapp-ci, state: pending}
- task: unit
file: eth-dapp-ci/ci/test.yml
params:
COVERALLS_TOKEN: ((coveralls_token))
on_success:
put: gh-status
params: {path: eth-dapp-ci, state: success}
on_failure:
put: gh-status
params: {path: eth-dapp-ci, state: failure}
- name: rinkeby
public: true
serial_groups: [version]
plan:
- get: eth-dapp-ci
passed: [unit]
trigger: true
- get: version
params: {pre: rinkeby}
- put: version
params: {file: version/version}
- name: mainnet
public: true
serial_groups: [version]
plan:
- get: eth-dapp-ci
passed: [rinkeby]
- get: final-version
resource: version
passed: [rinkeby]
params: {bump: final}
- get: release-notes
- task: build
file: eth-dapp-ci/ci/build.yml
input_mapping: {version: final-version}
- task: grab-release-notes
file: eth-dapp-ci/ci/grab-release-notes.yml
- put: version
params: {file: final-version/version}
- put: ethereum-dapp-rel
params:
tag: version/version
tag_prefix: v
committish: eth-dapp-ci/.git/HEAD
name: release-info/name
body: release-info/notes.md
globs: [assets/*]
- name: deployed
public: true
serial_groups: [version]
plan:
- get: version
params: {bump: deployed, pre: rinkeby}
- put: version
params: {file: version/version}
- name: versioning
public: true
serial_groups: [version]
plan:
- get: version
params: {bump: versioning, pre: rinkeby}
- put: version
params: {file: version/version}
- name: commit
public: true
serial_groups: [version]
plan:
- get: version
passed: [mainnet]
params: {bump: commit, pre: rinkeby}
trigger: true
- put: version
params: {file: version/version}
- name: pr-mythx
public: true
plan:
- get: ethereum-dapp-pr
version: every
trigger: true
- task: unit
file: ethereum-dapp-pr/ci/test.yml
input_mapping: {eth-dapp-ci: ethereum-dapp-pr}