3
3
env :
4
4
PACKAGE_MANAGER_INSTALL : " apt-get update && apt-get install -y"
5
5
MAKEJOBS : " -j4"
6
- DANGER_RUN_CI_ON_HOST : " 1" # Containers will be discarded after the run, so there is no risk that the ci scripts modify the system
7
6
TEST_RUNNER_PORT_MIN : " 14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
8
7
CCACHE_SIZE : " 200M"
9
8
CCACHE_DIR : " /tmp/ccache_dir"
10
9
10
+ cirrus_ephemeral_worker_template_env : &CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
11
+ DANGER_RUN_CI_ON_HOST : " 1" # Containers will be discarded after the run, so there is no risk that the ci scripts modify the system
12
+
11
13
# https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
12
14
base_template : &BASE_TEMPLATE
13
15
skip : $CIRRUS_REPO_FULL_NAME == "bitcoin-core/gui" && $CIRRUS_PR == "" # No need to run on the read-only mirror, unless it is a PR. https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution
@@ -69,13 +71,16 @@ task:
69
71
<< : *CREDITS_TEMPLATE
70
72
lint_script :
71
73
- ./ci/lint_run_all.sh
74
+ env :
75
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
72
76
73
77
task :
74
78
name : ' ARM [unit tests, no functional tests] [buster]'
75
79
<< : *GLOBAL_TASK_TEMPLATE
76
80
container :
77
81
image : debian:buster
78
82
env :
83
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
79
84
FILE_ENV : " ./ci/test/00_setup_env_arm.sh"
80
85
81
86
task :
84
89
container :
85
90
image : ubuntu:focal
86
91
env :
92
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
87
93
FILE_ENV : " ./ci/test/00_setup_env_win64.sh"
88
94
89
95
task :
92
98
container :
93
99
image : centos:8
94
100
env :
101
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
95
102
PACKAGE_MANAGER_INSTALL : " yum install -y"
96
103
FILE_ENV : " ./ci/test/00_setup_env_i686_centos.sh"
97
104
@@ -105,6 +112,7 @@ task:
105
112
container :
106
113
image : ubuntu:bionic
107
114
env :
115
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
108
116
FILE_ENV : " ./ci/test/00_setup_env_native_qt5.sh"
109
117
110
118
task :
@@ -115,6 +123,7 @@ task:
115
123
cpu : 6 # Increase CPU and Memory to avoid timeout
116
124
memory : 24G
117
125
env :
126
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
118
127
MAKEJOBS : " -j8"
119
128
FILE_ENV : " ./ci/test/00_setup_env_native_tsan.sh"
120
129
@@ -124,6 +133,7 @@ task:
124
133
container :
125
134
image : ubuntu:focal
126
135
env :
136
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
127
137
FILE_ENV : " ./ci/test/00_setup_env_native_msan.sh"
128
138
129
139
task :
@@ -132,6 +142,7 @@ task:
132
142
container :
133
143
image : ubuntu:focal
134
144
env :
145
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
135
146
FILE_ENV : " ./ci/test/00_setup_env_native_asan.sh"
136
147
137
148
task :
@@ -140,6 +151,7 @@ task:
140
151
container :
141
152
image : ubuntu:focal
142
153
env :
154
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
143
155
FILE_ENV : " ./ci/test/00_setup_env_native_fuzz.sh"
144
156
145
157
task :
@@ -148,6 +160,7 @@ task:
148
160
container :
149
161
image : ubuntu:focal
150
162
env :
163
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
151
164
FILE_ENV : " ./ci/test/00_setup_env_native_multiprocess.sh"
152
165
153
166
task :
@@ -156,6 +169,7 @@ task:
156
169
container :
157
170
image : ubuntu:bionic
158
171
env :
172
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
159
173
FILE_ENV : " ./ci/test/00_setup_env_native_nowallet.sh"
160
174
161
175
task :
@@ -164,6 +178,7 @@ task:
164
178
container :
165
179
image : ubuntu:focal
166
180
env :
181
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
167
182
FILE_ENV : " ./ci/test/00_setup_env_mac.sh"
168
183
169
184
task :
@@ -175,7 +190,7 @@ task:
175
190
# Use latest image, but hardcode version to avoid silent upgrades (and breaks)
176
191
image : big-sur-xcode-12.4 # https://cirrus-ci.org/guide/macOS
177
192
env :
178
- DANGER_RUN_CI_ON_HOST : " true "
193
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
179
194
CI_USE_APT_INSTALL : " no"
180
195
PACKAGE_MANAGER_INSTALL : " echo" # Nothing to do
181
196
FILE_ENV : " ./ci/test/00_setup_env_mac_host.sh"
@@ -188,4 +203,5 @@ task:
188
203
container :
189
204
image : ubuntu:focal
190
205
env :
206
+ << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
191
207
FILE_ENV : " ./ci/test/00_setup_env_android.sh"
0 commit comments