forked from RenderKit/ospray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
439 lines (390 loc) · 8.53 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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
stages:
- build
- test-src
- test-build
- deploy
variables:
GIT_DEPTH: "15"
KW_PROJECT_NAME: ospray
.job_template: &build_job_docker
stage: build
tags:
- docker
image: ospray/docker-images:arch # default image
script:
- scripts/build_gitlab/linux.sh # default script
.job_template: &build_job_docker_modules
stage: build
tags:
- docker
- modules
image: ospray/docker-images:centos6-mod
script:
- scripts/build_gitlab/linux.sh
.job_template: &build_job_shell
stage: build
tags:
- build
.job_template: &release_job
stage: deploy
tags:
- release
dependencies:
- test-centos6-gcc
- pdf
only:
- devel
- master
- /^release-.*$/
.job_template: &test_job
stage: test-build
tags:
- docker
script:
- scripts/tests/run_tests.sh
artifacts:
paths:
- $CI_PROJECT_DIR/build/tests.xml
- $CI_PROJECT_DIR/build/failed
expire_in: 1 week
when: always
.job_template: &test_job_windows
<<: *test_job
script:
- scripts\tests\run_tests.bat
artifacts:
paths:
- tests.xml
- failed
expire_in: 1 week
when: always
### BUILD JOBS ###
build-arch-gcc:
<<: *build_job_docker
build-arch-clang:
<<: *build_job_docker
script:
- export CC=clang
- export CXX=clang++
- scripts/build_gitlab/linux.sh
build-arch-gcc-warnings:
<<: *build_job_docker
script:
- scripts/build_gitlab/linux.sh -DOSPRAY_STRICT_BUILD=ON -DOSPRAY_WARN_AS_ERRORS=ON -DOSPRAY_MODULE_MPI=ON
allow_failure: true
build-arch-clang-warnings:
<<: *build_job_docker
script:
- export CC=clang
- export CXX=clang++
- scripts/build_gitlab/linux.sh -DOSPRAY_STRICT_BUILD=ON -DOSPRAY_WARN_AS_ERRORS=ON -DOSPRAY_MODULE_MPI=ON
allow_failure: true
build-ubuntu1604-gcc:
<<: *build_job_docker
image: ospray/docker-images:ubuntu16.04
artifacts:
paths:
- $CI_PROJECT_DIR
expire_in: 3 day
build-ubuntu1404-gcc:
<<: *build_job_docker
image: ospray/docker-images:ubuntu14.04
artifacts:
paths:
- $CI_PROJECT_DIR
expire_in: 3 day
build-centos6-gcc:
<<: *build_job_docker_modules
script:
- module load cmake
- module load gcc/4.8.2
- module load embree
- module load tbb
- module load ispc
- export CC=gcc
- export CXX=g++
- scripts/build_gitlab/linux.sh
artifacts:
paths:
- $CI_PROJECT_DIR
build-centos6-icc:
<<: *build_job_docker_modules
script:
- module load cmake
- module load gcc/4.8.2
- module load intel
- module load embree
- module load tbb
- module load ispc
- export CC=icc
- export CXX=icpc
- scripts/build_gitlab/linux.sh
build-centos6-icc15:
<<: *build_job_docker_modules
script:
- module load cmake
- module load gcc/4.8.2
- module load intel/2015
- module load embree
- module load tbb
- module load ispc
- export CC=icc
- export CXX=icpc
- scripts/build_gitlab/linux.sh
build-centos7-gcc:
<<: *build_job_docker
image: ospray/docker-images:centos7
artifacts:
paths:
- $CI_PROJECT_DIR
expire_in: 3 day
build-debug:
<<: *build_job_docker
script:
- scripts/build_gitlab/linux.sh -DCMAKE_BUILD_TYPE=Debug
build-mpi:
<<: *build_job_docker
script:
- scripts/build_gitlab/linux.sh -DOSPRAY_MODULE_MPI=ON
build-osx-clang:
<<: *build_job_shell
script:
- scripts/build_gitlab/osx.sh
tags:
- osx
- clang
build-windows-msvc14:
<<: *build_job_shell
script:
- scripts\build_gitlab\win.bat "Visual Studio 14 2015 Win64" "v140" "ON"
tags:
- msvc14
- win7
artifacts:
paths:
- build/Release
- build/regression_tests
expire_in: 3 day
build-windows-msvc15:
<<: *build_job_shell
script:
- scripts\build_gitlab\win.bat "Visual Studio 15 2017 Win64" "v141" "OFF"
tags:
- msvc15
- win7
artifacts:
paths:
- build/Release
- build/regression_tests
expire_in: 3 day
build-windows-icc:
<<: *build_job_shell
script:
- scripts\build_gitlab\win.bat "Visual Studio 14 2015 Win64" "Intel C++ Compiler 18.0" "ON"
tags:
- icc18
- win7
artifacts:
paths:
- build/Release
- build/regression_tests
expire_in: 3 day
build-scan-kw:
stage: build
image: ospray-kw-centos7
script:
- /tmp/build-scan-kw.sh
- test -s $CI_PROJECT_DIR/kw_build_number
tags:
- kw-scan-docker
artifacts:
paths:
- $CI_PROJECT_DIR/kw_build_number
expire_in: 3 day
### TEST JOBS ###
test-gen-centos7-gcc:
<<: *test_job
image: ospray/docker-images:centos7
script:
- cd $CI_PROJECT_DIR/build
- ../scripts/tests/generate_baseline.sh
artifacts:
paths:
- $CI_PROJECT_DIR/build/img
expire_in: 1 week
dependencies:
- build-centos7-gcc
when: manual
test-centos7-gcc:
<<: *test_job
image: ospray/docker-images:centos7
dependencies:
- build-centos7-gcc
test-centos6-gcc:
<<: *test_job
image: ospray/docker-images:centos6-mod
dependencies:
- build-centos6-gcc
script:
- module load tbb
- scripts/tests/run_tests.sh
tags:
- modules
test-ubuntu1404-gcc:
<<: *test_job
image: ospray/docker-images:ubuntu14.04
script:
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/ scripts/tests/run_tests.sh
dependencies:
- build-ubuntu1404-gcc
test-ubuntu1604-gcc:
<<: *test_job
image: ospray/docker-images:ubuntu16.04
script:
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/ scripts/tests/run_tests.sh
dependencies:
- build-ubuntu1604-gcc
test-windows-icc:
<<: *test_job_windows
tags:
- win7
- icc
dependencies:
- build-windows-icc
test-windows-msvc15:
<<: *test_job_windows
tags:
- win7
- msvc14
dependencies:
- build-windows-msvc15
test-windows-msvc14:
<<: *test_job_windows
tags:
- win7
- msvc14
dependencies:
- build-windows-msvc14
benchmark-centos7-gcc:
stage: test-build
image: ospray/docker-images:centos7
script:
- cd $CI_PROJECT_DIR/build
- mkdir benchmarks
- make ospray_bench_data
- ln -s /opt/ospray/benchmark/test_data $CI_PROJECT_DIR/build/test_data
- ../scripts/bench/run_benchmark_datasets.py --output benchmarks/stats.csv --baseline benchmarks/baseline/stats.csv --reference benchmarks/baseline --renderer scivis
tags:
- docker
- ospray-benchmark
artifacts:
paths:
- $CI_PROJECT_DIR/build/bench_output
- $CI_PROJECT_DIR/build/benchmarks/stats.csv
expire_in: 1 week
when: always
dependencies:
- build-centos7-gcc
when: manual
test-kw-critical:
stage: test-src
image: ospray-kw-centos7
script:
- /tmp/test-kw-critical.sh
dependencies:
- build-scan-kw
tags:
- kw-scan-docker
source-protex-scan:
stage: build
image: ospray-protex-centos7
script:
- /tmp/source-scan-protex.sh
dependencies:
tags:
- protex-scan-docker
## Temporarily allow to fail
when: manual
allow_failure: true
### Documentation ###
.job_template: &doc-defaults
stage: build
tags:
- docker
image: ospray/docker-images:docu
variables:
GIT_SUBMODULE_STRATEGY: normal
pdf:
<<: *doc-defaults
script:
- cd doc
- make pdf
only:
- devel
- /^release-.*$/
- master
artifacts:
paths:
- readme.pdf
expire_in: 1 week
web:
<<: *doc-defaults
script:
- cd doc
- make www
only:
- master
artifacts:
paths:
- doc/www/*
expire_in: 1 week
### RELEASE JOBS ###
release-linux-icc:
<<: *release_job
script:
- module load cmake
- module load gcc/4.8.2
- module load intel
- export CC=icc
- export CXX=icpc
- scripts/release/linux.sh
- cd build_release
- OSPRAY_VERSION=`sed -n 's/#define OSPRAY_VERSION "\(.*\)"/\1/p' ospray/version.h`
- $SIGN_FILE_LINUX ospray-*-${OSPRAY_VERSION}-*.rpm
- tar czf ospray-${OSPRAY_VERSION}.x86_64.rpm.tar.gz ospray-*-${OSPRAY_VERSION}-*.rpm
tags:
- icc
- centos6
- mpi
artifacts:
paths:
- build_release/*.gz
release-osx-clang:
<<: *release_job
script:
- export CC=clang
- export CXX=clang++
- scripts/release/macosx.sh
# DMGs cannot be signed; enable signing when switched to PKG:
# $SIGN_FILE_MAC build_release/ospray-*.pkg
tags:
- clang
- osx
- mpi
artifacts:
paths:
- build_release/*.gz
- build_release/*.dmg
release-windows:
<<: *release_job
script:
- scripts\release\win.bat
- Invoke-Expression "$env:SIGN_FILE_WINDOWS build_release\ospray*.msi"
tags:
- msvc
- win7
- mpi
artifacts:
paths:
- build_release\ospray*.zip
- build_release\ospray*.msi