forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
347 lines (310 loc) · 9.16 KB
/
.gitlab-ci.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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
include:
# Metadata shared my many jobs
- local: .gitlab/rules.yml
- local: .gitlab/artifacts.yml
- local: .gitlab/upload.yml
# OS builds.
- local: .gitlab/os-linux.yml
- local: .gitlab/os-macos.yml
- local: .gitlab/os-windows.yml
stages:
- build
- test
- test-ext
- upload
################################################################################
# Job declarations
#
# Each job must pull in each of the following keys:
#
# - a "base image"
# - a build script
# - tags for the jobs
# - already provided for upload and CI update jobs
# - rules for when to run the job
#
# Additionally, jobs may also contain:
#
# - artifacts
# - dependency/needs jobs for required jobs
################################################################################
# Linux
## Basic builds
build:fedora33-mpi-renderless:
extends:
- .fedora33_mpi_renderless
- .cmake_build_linux
- .linux_builder_tags
- .cmake_build_artifacts
- .run_manually
test:fedora33-mpi-renderless:
extends:
- .fedora33_mpi_renderless
- .cmake_test_linux
- .linux_builder_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:fedora33-mpi-renderless
needs:
- build:fedora33-mpi-renderless
test-ext:vtk:fedora33-mpi-renderless:
extends:
- .fedora33_mpi_renderless_ext_vtk
- .cmake_test_external_linux
- .linux_qt_builder_tags
- .cmake_tidy_artifacts
- .run_automatically
dependencies:
- test:fedora33-mpi-renderless
needs:
- test:fedora33-mpi-renderless
# build:fedora33-java-mpi-qt-tbb:
# extends:
# - .fedora33_java_mpi_qt_tbb
# - .cmake_build_linux
# - .linux_qt_builder_tags
# - .cmake_build_artifacts
# - .run_manually
# # The Java build extends the build time considerably.
# timeout: 2 hours
# test:fedora33-java-mpi-qt-tbb:
# extends:
# - .fedora33_java_mpi_qt_tbb
# - .cmake_test_linux
# - .linux_qt_tester_tags
# - .cmake_test_artifacts
# - .run_automatically
# dependencies:
# - build:fedora33-java-mpi-qt-tbb
# needs:
# - build:fedora33-java-mpi-qt-tbb
build:fedora33-mpi-python-qt-tbb:
extends:
- .fedora33_mpi_python_qt_tbb
- .cmake_build_linux
- .linux_qt_builder_tags
- .cmake_build_artifacts
- .run_manually
test:fedora33-mpi-python-qt-tbb:
extends:
- .fedora33_mpi_python_qt_tbb
- .cmake_test_linux
- .linux_qt_tester_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:fedora33-mpi-python-qt-tbb
needs:
- build:fedora33-mpi-python-qt-tbb
test-ext:vtk:fedora33-mpi-python-qt-tbb:
extends:
- .fedora33_mpi_python_qt_tbb_ext_vtk
- .cmake_test_external_linux
- .linux_qt_tester_tags
- .cmake_tidy_artifacts
- .run_automatically
dependencies:
- test:fedora33-mpi-python-qt-tbb
needs:
- test:fedora33-mpi-python-qt-tbb
## Static analysis builds
build:fedora33-tidy:
extends:
- .fedora33_tidy
- .cmake_build_linux
- .linux_builder_tags
- .cmake_tidy_artifacts
- .run_manually
# clang-tidy really hampers compilation cache improvements, so it takes
# longer.
timeout: 2 hours
## Sanitizer builds
build:fedora33-asan:
extends:
- .fedora33_asan
- .cmake_build_linux
- .linux_qt_builder_tags
- .cmake_build_artifacts
- .run_manually
test:fedora33-asan:
extends:
- .fedora33_asan
- .cmake_memcheck_linux
- .linux_qt_tester_priv_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:fedora33-asan
needs:
- build:fedora33-asan
build:fedora33-tsan:
extends:
- .fedora33_tsan
- .cmake_build_linux
- .linux_qt_builder_tags
- .cmake_build_artifacts
- .run_manually
test:fedora33-tsan:
extends:
- .fedora33_tsan
- .cmake_memcheck_linux
- .linux_qt_tester_priv_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:fedora33-tsan
needs:
- build:fedora33-tsan
build:fedora33-ubsan:
extends:
- .fedora33_ubsan
- .cmake_build_linux
- .linux_qt_builder_tags
- .cmake_build_artifacts
- .run_manually
test:fedora33-ubsan:
extends:
- .fedora33_ubsan
- .cmake_memcheck_linux
- .linux_qt_tester_priv_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:fedora33-ubsan
needs:
- build:fedora33-ubsan
## Documentation
build:documentation:
extends:
- .fedora33_doxygen_mpi_python_qt_tbb
- .cmake_build_linux
- .linux_qt_builder_tags
- .cmake_doxygen_artifacts
- .run_manually
upload:documentation:
extends:
- .rsync_upload
- .upload_only
dependencies:
- build:documentation
needs:
- build:documentation
variables:
SRC_SUBDIR: install/usr/share/doc/vtk/doxygen/html/
RSYNC_DESTINATION: VTKDoxygen/html
# macOS
build:macos-kits-python-qt:
extends:
- .macos_kits_python_qt
- .cmake_build_macos
- .macos_builder_tags
- .cmake_build_artifacts
- .run_manually
# Some of the macOS runners are not very powerful.
timeout: 2 hours
test:macos-kits-python-qt:
extends:
- .macos_kits_python_qt
- .cmake_test_macos
- .macos_builder_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:macos-kits-python-qt
needs:
- build:macos-kits-python-qt
# FIXME: This is not working because Qt uses @rpath/ for its library
# references. Since we're using a `nonconcurrent` runner for this, we can't
# bake in any paths at build time. However, to install Qt next to it, we need
# to provide the whole thing to avoid building against one Qt and using another
# at runtime. The external testing framework can't provide the rpath because
# tests exists that are just Python scripts, so `vtkpython` needs to work
# standalone.
#
# test-ext:vtk:macos-kits-python-qt:
# extends:
# - .macos_kits_python_qt_ext_vtk
# - .cmake_test_external_macos
# - .macos_ext_builder_tags
# - .cmake_tidy_artifacts
# - .run_automatically
# dependencies:
# - test:macos-kits-python-qt
# needs:
# - test:macos-kits-python-qt
# Windows
build:windows-vs2019-kits-mpi-python-qt:
extends:
- .windows_vs2019_kits_mpi_python_qt
- .cmake_build_windows
- .windows_builder_tags
- .cmake_build_artifacts
- .run_manually
test:windows-vs2019-kits-mpi-python-qt:
extends:
- .windows_vs2019_kits_mpi_python_qt
- .cmake_test_windows
- .windows_tester_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:windows-vs2019-kits-mpi-python-qt
needs:
- build:windows-vs2019-kits-mpi-python-qt
# This is disabled because VTK-m doesn't make a relocatable installation of its
# imported targets (cf. `vtkm::tbb` since it embeds the build-time locations
# into the install tree. Since the build/install time path is not the same as
# this `concurrent`-tagged job, it's just not going to work well. See
# vtk/vtk-m#609 for tracking.
#
# Also, the `VTK_DLL_DIRS` ends up making a non-relocatable installation. See
# `.gitlab/ci/configure_windows.cmake` for the relevant code.
#
# test-ext:vtk:windows-vs2019-kits-mpi-python-qt:
# extends:
# - .windows_vs2019_kits_mpi_python_qt_ext_vtk
# - .cmake_test_external_windows
# - .windows_ext_builder_tags
# - .cmake_tidy_artifacts
# - .run_automatically
# dependencies:
# - test:windows-vs2019-kits-mpi-python-qt
# needs:
# - test:windows-vs2019-kits-mpi-python-qt
build:windows-vs2019-mpi-python-qt:
extends:
- .windows_vs2019_mpi_python_qt
- .cmake_build_windows
- .windows_builder_tags
- .cmake_build_artifacts
- .run_manually
test:windows-vs2019-mpi-python-qt:
extends:
- .windows_vs2019_mpi_python_qt
- .cmake_test_windows
- .windows_tester_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:windows-vs2019-mpi-python-qt
needs:
- build:windows-vs2019-mpi-python-qt
build:windows-vs2019-mpi-python-qt-static:
extends:
- .windows_vs2019_mpi_python_qt_static
- .cmake_build_windows
- .windows_builder_tags
- .cmake_build_artifacts
- .run_manually
test:windows-vs2019-mpi-python-qt-static:
extends:
- .windows_vs2019_mpi_python_qt_static
- .cmake_test_windows
- .windows_tester_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:windows-vs2019-mpi-python-qt-static
needs:
- build:windows-vs2019-mpi-python-qt-static