forked from algorand/go-algorand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmule.yaml
220 lines (208 loc) · 6.23 KB
/
mule.yaml
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
tasks:
- task: shell.Shell
name: go-version
command: scripts/get_golang_version.sh
saveLogs: true
# Stash tasks
- task: stash.Stash
name: linux-amd64
bucketName: go-algorand-ci-cache
stashId: ${JENKINS_JOB_CACHE_ID}/linux-amd64
globSpecs:
- tmp/node_pkgs/**
- crypto/libs/**
- gen/devnet/genesis.json
- gen/testnet/genesis.json
- gen/mainnet/genesis.json
- task: stash.Stash
name: darwin-amd64
bucketName: go-algorand-ci-cache
stashId: ${JENKINS_JOB_CACHE_ID}/darwin-amd64
globSpecs:
- tmp/node_pkgs/**
- crypto/libs/**
- gen/devnet/genesis.json
- gen/testnet/genesis.json
- gen/mainnet/genesis.json
- task: stash.Stash
name: linux-arm64
bucketName: go-algorand-ci-cache
stashId: ${JENKINS_JOB_CACHE_ID}/linux-arm64
globSpecs:
- tmp/node_pkgs/**
- crypto/libs/**
- gen/devnet/genesis.json
- gen/testnet/genesis.json
- gen/mainnet/genesis.json
- task: stash.Stash
name: linux-arm32
bucketName: go-algorand-ci-cache
stashId: ${JENKINS_JOB_CACHE_ID}/linux-arm32
globSpecs:
- tmp/node_pkgs/**
- crypto/libs/**
- gen/devnet/genesis.json
- gen/testnet/genesis.json
- gen/mainnet/genesis.json
# Unstash tasks
- task: stash.Unstash
name: linux-arm64
bucketName: go-algorand-ci-cache
stashId: ${JENKINS_JOB_CACHE_ID}/linux-arm64
- task: stash.Unstash
name: linux-amd64
bucketName: go-algorand-ci-cache
stashId: ${JENKINS_JOB_CACHE_ID}/linux-amd64
- task: stash.Unstash
name: darwin-amd64
bucketName: go-algorand-ci-cache
stashId: ${JENKINS_JOB_CACHE_ID}/darwin-amd64
- task: stash.Unstash
name: linux-arm32
bucketName: go-algorand-ci-cache
stashId: ${JENKINS_JOB_CACHE_ID}/linux-arm32
# Docker tasks
- task: docker.Version
configFilePath: scripts/configure_dev-deps.sh
- task: shell.docker.Ensure
name: centos
image: algorand/go-algorand-ci-linux
version: '{{ docker.Version.outputs.version }}-{{ shell.Shell.go-version.outputs.stdout }}'
goVersion: '{{ shell.Shell.go-version.outputs.stdout }}'
dockerFilePath: docker/build/cicd.centos.Dockerfile
dependencies: shell.Shell.go-version docker.Version
- task: shell.docker.Ensure
name: alpine
image: algorand/go-algorand-ci-linux
version: '{{ docker.Version.outputs.version }}-{{ shell.Shell.go-version.outputs.stdout }}'
goVersion: '{{ shell.Shell.go-version.outputs.stdout }}'
dockerFilePath: docker/build/cicd.alpine.Dockerfile
dependencies: shell.Shell.go-version docker.Version
- task: docker.Make
name: build
docker:
image: algorand/go-algorand-ci-linux
version: '{{ docker.Version.outputs.version }}-{{ shell.Shell.go-version.outputs.stdout }}'
goVersion: '{{ shell.Shell.go-version.outputs.stdout }}'
workDir: /go/src/github.com/algorand/go-algorand
target: ci-build
dependencies: shell.Shell.go-version docker.Version
- task: docker.Make
name: fulltest
docker:
image: algorand/go-algorand-ci-linux
version: '{{ docker.Version.outputs.version }}-{{ shell.Shell.go-version.outputs.stdout }}'
goVersion: '{{ shell.Shell.go-version.outputs.stdout }}'
workDir: /go/src/github.com/algorand/go-algorand
target: fulltest -j4
dependencies: shell.Shell.go-version docker.Version
- task: docker.Make
name: integration-test
docker:
env:
- SHORTTEST=-short
image: algorand/go-algorand-ci-linux
version: '{{ docker.Version.outputs.version }}-{{ shell.Shell.go-version.outputs.stdout }}'
goVersion: '{{ shell.Shell.go-version.outputs.stdout }}'
workDir: /go/src/github.com/algorand/go-algorand
target: ci-integration -j4
dependencies: shell.Shell.go-version docker.Version
- task: docker.Make
name: archive
docker:
image: algorand/go-algorand-ci-linux
version: '{{ docker.Version.outputs.version }}-{{ shell.Shell.go-version.outputs.stdout }}'
goVersion: '{{ shell.Shell.go-version.outputs.stdout }}'
workDir: /go/src/github.com/algorand/go-algorand
target: ci-archive
dependencies: shell.Shell.go-version docker.Version
# Local Tasks
- task: shell.Make
name: ci-deps build
target: ci-build
- task: shell.Make
name: fulltest
target: fulltest -j4
- task: shell.Make
name: shorttest
target: shorttest -j3
- task: shell.Make
name: integration-test
target: ci-integration -j4
- task: shell.Make
name: archive
target: archive
jobs:
# Linux amd64 jobs
build-linux-amd64:
configs:
arch: amd64
tasks:
- shell.docker.Ensure.centos
- docker.Make.build
# - stash.Stash.linux-amd64
test-linux-amd64-integration:
configs:
arch: amd64
tasks:
- shell.docker.Ensure.centos
# - stash.Unstash.linux-amd64
- docker.Make.integration-test
test-linux-amd64-fulltest:
configs:
arch: amd64
tasks:
- shell.docker.Ensure.centos
- docker.Make.fulltest
# Darwin amd64 jobs
# build-darwin-amd64:
# configs:
# arch: amd64
# tasks:
# - shell.Make.build
# - stash.Stash.darwin-amd64
# test-darwin-amd64-integration:
# configs:
# arch: amd64
# tasks:
# - stash.Unstash.darwin-amd64
# - shell.Make.integration-test
# test-darwin-amd64-fulltest:
# configs:
# arch: amd64
# tasks:
# - shell.Make.fulltest
# Linux arm64 jobs
build-linux-arm64:
configs:
arch: arm64v8
tasks:
- shell.docker.Ensure.centos
- docker.Make.build
# - stash.Stash.linux-arm64
test-linux-arm64-integration:
configs:
arch: arm64v8
tasks:
- shell.docker.Ensure.centos
- stash.Unstash.linux-arm64
- docker.Make.integration-test
# Linux arm32 jobs
build-linux-arm32:
configs:
arch: arm32v6
tasks:
- shell.docker.Ensure.alpine
- docker.Make.build
- stash.Stash.linux-arm32
# Archive jobs
archive-linux-amd64:
configs:
arch: amd64
tasks:
- shell.docker.Ensure.centos
- stash.Unstash.linux-amd64
# - stash.Unstash.darwin-amd64
- stash.Unstash.linux-arm64
- stash.Unstash.linux-arm32
- docker.Make.archive