This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
283 lines (276 loc) · 10.4 KB
/
.travis.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
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
language: shell
os: linux
.com.github.horizenofficial.zend_oo.env-definitions:
- &docker_amd64_linux_ubuntu_bionic
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_bionic
- DOCKER_IS_DEB=true
- &docker_amd64_windows_ubuntu_bionic
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=windows
- DOCKER_FROM=ubuntu_bionic
- DOCKER_IS_DEB=true
- &docker_amd64_linux_ubuntu_focal
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_focal
- DOCKER_IS_DEB=true
- &docker_amd64_linux_ubuntu_bionic_unit-tests
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_bionic
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="btest gtest sec-hard no-dot-so util-test secp256k1 libsnark univalue"
- &docker_amd64_linux_ubuntu_bionic_rpc-tests_1
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_bionic
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-split=4:1"
- &docker_amd64_linux_ubuntu_bionic_rpc-tests_2
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_bionic
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-split=4:2"
- &docker_amd64_linux_ubuntu_bionic_rpc-tests_3
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_bionic
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-split=4:3"
- &docker_amd64_linux_ubuntu_bionic_rpc-tests_4
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_bionic
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-split=4:4"
- &docker_amd64_linux_ubuntu_bionic_test-fetch-params
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_bionic
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zen/test-fetch-params.sh"
- &docker_amd64_linux_ubuntu_focal_unit-tests
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_focal
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="btest gtest sec-hard no-dot-so util-test secp256k1 libsnark univalue"
- &docker_amd64_linux_ubuntu_focal_rpc-tests_1
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_focal
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-split=4:1"
- &docker_amd64_linux_ubuntu_focal_rpc-tests_2
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_focal
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-split=4:2"
- &docker_amd64_linux_ubuntu_focal_rpc-tests_3
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_focal
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-split=4:3"
- &docker_amd64_linux_ubuntu_focal_rpc-tests_4
env:
- DOCKER_ARCH=amd64
- DOCKER_TARGET_OS=linux
- DOCKER_FROM=ubuntu_focal
- DOCKER_IS_DEB=true
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-split=4:4"
- &amd64_osx_xcode9_4_unit-tests
env:
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="btest gtest util-test secp256k1 libsnark univalue"
# TODO figure out why the excluded tests are failing on MacOS in Travis when we migrate to OSX 10.14 after 10.13 EOL
- &amd64_osx_xcode9_4_rpc-tests_1
env:
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-exclude=rpcbind_test.py,invalidblockrequest.py,invalidblockposthalving.py,p2p-acceptblock.py --rpc-split=3:1"
- &amd64_osx_xcode9_4_rpc-tests_2
env:
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-exclude=rpcbind_test.py,invalidblockrequest.py,invalidblockposthalving.py,p2p-acceptblock.py --rpc-split=3:2"
- &amd64_osx_xcode9_4_rpc-tests_3
env:
- TEST_CMD="./qa/zcash/full_test_suite.py"
- TEST_ARGS="rpc --rpc-extended --rpc-exclude=rpcbind_test.py,invalidblockrequest.py,invalidblockposthalving.py,p2p-acceptblock.py --rpc-split=3:3"
.com.github.horizenofficial.zend_oo.job-definitions:
- &prepare_docker_amd64
os: linux
dist: focal
cache: false
script:
- bash "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/prepare/docker_image_build.sh"
- bash "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/prepare/docker_image_deploy.sh"
- &build_docker_amd64_x-large
os: linux
dist: focal
vm:
size: x-large
cache:
directories:
- "$HOME/.ccache"
script:
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/build/build_${TRAVIS_CPU_ARCH}_${DOCKER_TARGET_OS}_${DOCKER_FROM}.sh"
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/push_archive.sh ${B2_UL_COMPRESS_FOLDER} ${B2_UL_FILENAME}"
- &test_docker_amd64
if: env(SKIP_TESTS) != true
os: linux
dist: focal
cache:
directories:
- "$HOME/.zcash-params"
script:
- bash -c "RENAME_FOLDER='true' RENAME_SUFFIX='_clean' ${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/get_archive.sh ${B2_DL_DECOMPRESS_FOLDER} ${B2_DL_FILENAME}"
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/travis_stay_alive.sh"
- bash -c '${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/test/run_test.sh "${TEST_CMD}" "${TEST_ARGS}"'
- &test_docker_amd64_x-large
if: env(SKIP_TESTS) != true
os: linux
dist: focal
vm:
size: x-large
cache:
directories:
- "$HOME/.zcash-params"
script:
- bash -c "RENAME_FOLDER='true' RENAME_SUFFIX='_clean' ${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/get_archive.sh ${B2_DL_DECOMPRESS_FOLDER} ${B2_DL_FILENAME}"
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/travis_stay_alive.sh"
- bash -c '${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/test/run_test.sh "${TEST_CMD}" "${TEST_ARGS}"'
- &test_osx_xcode9_4
if: (env(SKIP_TESTS) != true) AND (env(SKIP_OSX) != true)
os: osx
osx_image: xcode9.4
cache:
directories:
- "$HOME/ZcashParams"
script:
- bash -c "RENAME_FOLDER='true' RENAME_SUFFIX='_clean' ${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/get_archive.sh ${B2_DL_DECOMPRESS_FOLDER} ${B2_DL_FILENAME}"
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/travis_stay_alive.sh"
- bash -c '${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/test/run_test.sh "${TEST_CMD}" "${TEST_ARGS}"'
env:
global:
- SKIP_OSX=true
before_install:
- source "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/setup_environment.sh"
install:
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/install.sh"
jobs:
include:
# build and push docker build/test dependency images
- stage: Prepare
<<: *prepare_docker_amd64
<<: *docker_amd64_linux_ubuntu_bionic
- stage: Prepare
<<: *prepare_docker_amd64
<<: *docker_amd64_linux_ubuntu_focal
- stage: Prepare
<<: *prepare_docker_amd64
<<: *docker_amd64_windows_ubuntu_bionic
# build zencash-apple toolchain
- stage: Prepare
if: env(SKIP_OSX) != true
os: osx
osx_image: xcode9.4
cache: false
script:
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/prepare/build_zencash-apple.sh"
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/push_archive.sh ${B2_UL_COMPRESS_FOLDER} ${B2_UL_FILENAME}"
# Docker based builds
- stage: Build
<<: *build_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_bionic
- stage: Build
<<: *build_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_focal
- stage: Build
<<: *build_docker_amd64_x-large
<<: *docker_amd64_windows_ubuntu_bionic
# osx build
- stage: Build
if: env(SKIP_OSX) != true
os: osx
osx_image: xcode9.4
cache:
directories:
- "$HOME/.ccache"
script:
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/get_archive.sh ${B2_DL_DECOMPRESS_FOLDER} ${B2_DL_FILENAME}"
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/build/build_${TRAVIS_CPU_ARCH}_${TRAVIS_OS_NAME}_${TRAVIS_OSX_IMAGE}.sh"
- bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/push_archive.sh ${B2_UL_COMPRESS_FOLDER} ${B2_UL_FILENAME}"
# Docker based tests
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_bionic_unit-tests
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_bionic_rpc-tests_1
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_bionic_rpc-tests_2
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_bionic_rpc-tests_3
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_bionic_rpc-tests_4
- stage: Test
<<: *test_docker_amd64
<<: *docker_amd64_linux_ubuntu_bionic_test-fetch-params
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_focal_unit-tests
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_focal_rpc-tests_1
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_focal_rpc-tests_2
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_focal_rpc-tests_3
- stage: Test
<<: *test_docker_amd64_x-large
<<: *docker_amd64_linux_ubuntu_focal_rpc-tests_4
# osx based tests
- stage: Test
<<: *test_osx_xcode9_4
<<: *amd64_osx_xcode9_4_unit-tests
- stage: Test
<<: *test_osx_xcode9_4
<<: *amd64_osx_xcode9_4_rpc-tests_1
- stage: Test
<<: *test_osx_xcode9_4
<<: *amd64_osx_xcode9_4_rpc-tests_2
- stage: Test
<<: *test_osx_xcode9_4
<<: *amd64_osx_xcode9_4_rpc-tests_3