-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy path.gitlab-ci.yml
824 lines (713 loc) · 20.4 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
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
## Copyright 2009 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
stages:
- build
- docu
- test
- benchmark
- scan1
- scan2
- release
- scan3
- mirror
variables:
GIT_DEPTH: "15"
ErrorActionPreference: STOP
.job_template: &archlinux
tags: [ docker ]
image: $DOCKER_REGISTRY/ospray/docker-images:arch
.job_template: ¢os7
tags: [ docker, modules ]
image: $DOCKER_REGISTRY/centos:7
.job_template: ¢os7-gcc4
tags: [ docker, modules ]
image: $DOCKER_REGISTRY/ospray/docker-images:centos7-mod
.job_template: ¢os8
tags: [ docker ]
image: $DOCKER_REGISTRY/ospray/docker-images:centos8
.job_template: &ubuntu1604
tags: [ docker ]
image: $DOCKER_REGISTRY/ospray/docker-images:ubuntu16.04
.job_template: &ubuntu1804
tags: [ docker ]
image: $DOCKER_REGISTRY/ospray/docker-images:ubuntu18.04
.job_template: &ubuntu2004
tags: [ docker ]
image: $DOCKER_REGISTRY/ospray/docker-images:ubuntu20.04
.job_template: &docu
tags: [docker]
image: $DOCKER_REGISTRY/ospray/docker-images:docu
.job_template: &clamav
tags: [docker]
image: $DOCKER_REGISTRY/clamav:ubuntu20.04
.job_template: &build_artifacts
artifacts:
paths:
- build/install/ospray
- build/CMakeCache.txt
- build/*/build/CMakeCache.txt
expire_in: 3 day
.job_template: &build_artifacts_all
artifacts:
paths:
- build/install
- build/CMakeCache.txt
- build/*/build/CMakeCache.txt
expire_in: 3 day
.job_template: &release_job
stage: release
needs: [pdf]
only:
- devel
- master
- /release/
.job_template: &test_job
stage: test
tags: [docker]
artifacts:
paths:
- build_regression_tests/tests*.xml
- build_regression_tests/failed*
expire_in: 1 week
when: always
.job_template: &test_job_unix_avx2
<<: *test_job
tags: [docker, avx2]
script:
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX2
.job_template: &test_job_unix_avx512skx
<<: *test_job
tags: [docker, avx512vl]
script:
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX512SKX
.job_template: &test_job_unix_mpi_avx2
<<: *test_job
tags: [docker, avx2, modules]
script:
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX2 TEST_MPI
.job_template: &test_job_unix_sanitize
<<: *test_job
tags: [docker, avx512vl]
script:
- export LSAN_OPTIONS="suppressions=$CI_PROJECT_DIR/scripts/tests/sanitize_ignore.txt"
- export LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH"
- PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX512SKX
- build/install/ospray/bin/ospBenchmark --benchmark_min_time=0
.job_template: &test_job_windows_avx2
<<: *test_job
script:
- $env:Path += ";$CI_PROJECT_DIR\build\install\ospray\bin"
- scripts\tests\run_tests.ps1 "$CI_PROJECT_DIR" AVX2
.job_template: &test_job_windows_avx512skx
<<: *test_job
script:
- $env:Path += ";$CI_PROJECT_DIR\build\install\ospray\bin"
- scripts\tests\run_tests.ps1 "$CI_PROJECT_DIR" AVX512SKX
.job_template: &benchmark_manual_job
stage: benchmark
when: manual
script:
- scripts/tests/run-benchmarks.sh
.job_template: &benchmark_scheduled_job
stage: benchmark
only:
variables:
- $RUN_SCHEDULE_BENCHMARKS
script:
- scripts/tests/run-benchmarks.sh
### BUILD JOBS ###
build-arch-gcc:
<<: *archlinux
stage: build
script:
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF
build-arch-clang:
<<: *archlinux
stage: build
script:
- export CC=clang
- export CXX=clang++
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF
build-arch-gcc-extras:
<<: *archlinux
stage: build
script:
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_CI_EXTRAS=ON -DBUILD_OIDN=ON
build-arch-clang-extras:
<<: *archlinux
stage: build
script:
- export CC=clang
- export CXX=clang++
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_CI_EXTRAS=ON -DBUILD_OIDN=ON
build-arch-clang-devel:
<<: *archlinux
stage: build
script:
- export CC=clang
- export CXX=clang++
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_CI_EXTRAS=ON -DBUILD_EMBREE_FROM_SOURCE=ON -DEMBREE_VERSION=devel -DBUILD_OIDN=ON -DBUILD_OIDN_FROM_SOURCE=ON -DOIDN_VERSION=devel -DOPENVKL_VERSION=devel -DRKCOMMON_VERSION=devel
only: [schedules]
build-linux-debug-all:
<<: *archlinux
stage: build
script:
- export CC=clang
- export CXX=clang++
- scripts/build_gitlab/linux.sh -G Ninja -DCMAKE_BUILD_TYPE=Debug -DDEPENDENCIES_BUILD_TYPE=Debug -DBUILD_GLFW=OFF -DBUILD_OSPRAY_CI_EXTRAS=ON -DBUILD_EMBREE_FROM_SOURCE=ON -DBUILD_OIDN=ON -DBUILD_OIDN_FROM_SOURCE=ON -DBUILD_OSPRAY_MODULE_MPI=ON -DBUILD_OSPRAY_MODULE_MULTIDEVICE=ON
<<: *build_artifacts
only: [schedules]
build-ubuntu1604-gcc:
<<: *ubuntu1604
stage: build
script:
- scripts/build_gitlab/linux.sh -G Ninja
<<: *build_artifacts
build-ubuntu1804-gcc:
<<: *ubuntu1804
stage: build
script:
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF
<<: *build_artifacts
build-ubuntu2004-gcc:
<<: *ubuntu2004
stage: build
script:
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_MODULE_MULTIDEVICE=ON
<<: *build_artifacts
build-centos8:
<<: *centos8
stage: build
script:
- scripts/build_gitlab/linux.sh -G Ninja
<<: *build_artifacts
build-centos7-icc:
<<: *centos7-gcc4
stage: build
script:
- module load cmake
- module load intel
- export CC=icc
- export CXX=icpc
- scripts/build_gitlab/linux.sh
build-centos7-icc15:
<<: *centos7-gcc4
stage: build
script:
- module load cmake
- module load intel/2015
- export CC=icc
- export CXX=icpc
- scripts/build_gitlab/linux.sh
build-centos7-icx:
<<: *centos7
stage: build
script:
- module load cmake
- module load intel/2022.1
- export CC=icx
- export CXX=icpx
- export CXXFLAGS="-fhonor-infinities -fhonor-nans"
- export LDFLAGS="-static-intel"
- scripts/build_gitlab/linux.sh
<<: *build_artifacts
build-centos7-gcc:
<<: *centos7
stage: build
script:
- scripts/build_gitlab/linux.sh
<<: *build_artifacts
build-centos7-mpi-impi:
<<: *centos7
stage: build
script:
- module load cmake
- module load intel/2021.2
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_MODULE_MPI=ON
<<: *build_artifacts
build-centos7-mpi-openmpi:
<<: *centos7
stage: build
script:
- module load cmake
- module load mpi/openmpi-x86_64
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_MODULE_MPI=ON
build-centos7-mpi-mpich:
<<: *centos7
stage: build
script:
- module load cmake
- module load mpi/mpich-x86_64
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_MODULE_MPI=ON
<<: *build_artifacts
build-centos8-mpi-openmpi:
<<: *centos8
stage: build
script:
- module load mpi/openmpi-x86_64
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_MODULE_MPI=ON
build-centos8-mpi-mpich:
<<: *centos8
stage: build
script:
- module load mpi/mpich-x86_64
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_MODULE_MPI=ON
build-mpi-cluster:
stage: build
tags: [cluster]
script:
- module load cmake
- module load impi
- module load gnu
- scripts/build_gitlab/linux.sh -DBUILD_OSPRAY_MODULE_MPI=ON -DOSPRAY_BUILD_GLM=OFF -DBUILD_OSPRAY_MODULE_MULTIDEVICE=ON
<<: *build_artifacts
only: [schedules]
build-linux-debug:
<<: *archlinux
stage: build
script:
- export CFLAGS=-fsanitize=address
- export CXXFLAGS=-fsanitize=address
- export LDFLAGS=-fsanitize=address
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF -DCMAKE_BUILD_TYPE=Debug
<<: *build_artifacts
build-osx-clang:
stage: build
tags:
- osx
- clang
script:
- scripts/build_gitlab/macosx.sh -DBUILD_OSPRAY_MODULE_MULTIDEVICE=ON
<<: *build_artifacts
build-osx-arm:
stage: build
tags:
- mac-arm
script:
- scripts/build_gitlab/macosx.sh -DBUILD_TBB_FROM_SOURCE=ON -DBUILD_EMBREE_FROM_SOURCE=ON -DBUILD_OIDN=ON -DBUILD_OIDN_FROM_SOURCE=ON
<<: *build_artifacts_all
build-windows-msvc15:
stage: build
tags:
- win
- msvc15
script:
- scripts\build_gitlab\win.ps1 "Visual Studio 15 2017 Win64" "v141" "Release" "OFF" "OFF"
<<: *build_artifacts
build-windows-debug-all:
stage: build
tags:
- win
- msvc15
- mpi
script:
- scripts\build_gitlab\win.ps1 "Visual Studio 15 2017 Win64" "v141" "Debug" "ON" "ON"
<<: *build_artifacts
only: [schedules]
build-windows-msvc16-mpi_and_md:
stage: build
tags:
- win
- msvc16
- mpi
script:
- scripts\build_gitlab\win.ps1 "Visual Studio 16 2019" "v142" "Release" "ON" "ON"
<<: *build_artifacts
#build-windows-icc:
# stage: build
# script:
# - scripts\build_gitlab\win.ps1 "Visual Studio 14 2015 Win64" "Intel C++ Compiler 17.0"
# tags:
# - icc17
# - win
# <<: *build_artifacts
### TEST JOBS ###
test-centos7-gcc-avx2:
<<: *centos7
<<: *test_job_unix_avx2
needs: [build-centos7-gcc]
test-centos7-icx-avx2:
<<: *centos7
<<: *test_job_unix_avx2
needs: [build-centos7-icx]
test-centos8-avx512skx:
<<: *centos8
<<: *test_job_unix_avx512skx
needs: [build-centos8]
test-ubuntu1604-gcc-avx2:
<<: *ubuntu1604
<<: *test_job_unix_avx2
needs: [build-ubuntu1604-gcc]
test-ubuntu1804-gcc-avx512skx:
<<: *ubuntu1804
<<: *test_job_unix_avx512skx
needs: [build-ubuntu1804-gcc]
test-ubuntu2004-gcc-avx2:
<<: *ubuntu2004
<<: *test_job_unix_avx2
needs: [build-ubuntu2004-gcc]
test-ubuntu2004-gcc-avx512skx:
<<: *ubuntu2004
<<: *test_job_unix_avx512skx
needs: [build-ubuntu2004-gcc]
script:
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX512SKX TEST_MULTIDEVICE
test-centos7-gcc-mpi-mpich-avx2:
<<: *centos7
<<: *test_job_unix_mpi_avx2
needs: [build-centos7-mpi-mpich]
before_script:
- module load cmake
- module load mpi/mpich-x86_64
test-centos7-gcc-mpi-impi-avx2:
<<: *centos7
<<: *test_job_unix_mpi_avx2
needs: [build-centos7-mpi-impi]
before_script:
- module load cmake
- module load intel/2021.2
# Note: no omnipath/infiniband/shm comm access for MPI within
# Docker container, just use sockets for running validation test
- export FI_PROVIDER=sockets
test-mpi-cluster:
<<: *test_job_unix_avx512skx
tags: [cluster]
script:
- module load impi
- module load gnu
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX512SKX TEST_MPI TEST_MULTIDEVICE
needs: [build-mpi-cluster]
only: [schedules]
sanitize-linux-debug:
<<: *archlinux
<<: *test_job_unix_sanitize
needs: [build-linux-debug]
test-linux-debug-all:
<<: *archlinux
<<: *test_job_unix_avx512skx
needs: [build-linux-debug-all]
only: [schedules]
test-osx-clang:
<<: *test_job
tags: [osx]
needs: [build-osx-clang]
script:
- DYLD_FALLBACK_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$DYLD_FALLBACK_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX2 TEST_MULTIDEVICE
test-osx-arm:
<<: *test_job
tags: [mac-arm]
needs: [build-osx-arm]
script:
- DYLD_FALLBACK_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$DYLD_FALLBACK_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX512SKX
test-tutorials:
<<: *centos7
stage: test
needs: [build-centos7-gcc]
script:
- scripts/tests/run_tutorials.sh
test-find-ospray:
<<: *centos7
stage: test
needs: [build-centos7-gcc]
script:
- module load cmake
- mkdir buildtut
- cd buildtut
- cmake -D ospray_DIR=`echo $CI_PROJECT_DIR/build/install/ospray/lib/cmake/ospray-*` ../apps/ospTutorial/ospTutorialFindospray
- cmake --build .
test-windows-msvc15-avx2:
<<: *test_job_windows_avx2
tags: [win, msvc15, only-avx2]
needs: [build-windows-msvc15]
allow_failure: true
test-windows-msvc15-avx512skx:
<<: *test_job_windows_avx512skx
tags: [win, msvc15, avx512vl]
needs: [build-windows-msvc15]
test-windows-debug-all:
<<: *test_job_windows_avx2
tags: [win, msvc15, only-avx2]
needs: [build-windows-debug-all]
only: [schedules]
test-windows-msvc16-avx2:
<<: *test_job_windows_avx2
tags: [win, msvc16, only-avx2, mpi]
needs: [build-windows-msvc16-mpi_and_md]
allow_failure: true
script:
- $env:Path += ";$CI_PROJECT_DIR\build\install\ospray\bin"
- scripts\tests\run_tests.ps1 "$CI_PROJECT_DIR" AVX2 TEST_MULTIDEVICE TEST_MPI
test-windows-msvc16-avx512skx:
<<: *test_job_windows_avx512skx
tags: [win, msvc16, avx512vl, mpi]
needs: [build-windows-msvc16-mpi_and_md]
script:
- $env:Path += ";$CI_PROJECT_DIR\build\install\ospray\bin"
- scripts\tests\run_tests.ps1 "$CI_PROJECT_DIR" AVX512SKX TEST_MULTIDEVICE TEST_MPI
generate-ci-baseline-avx2:
<<: *ubuntu2004
<<: *test_job_unix_avx2
needs: [build-ubuntu2004-gcc]
script:
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/generate_baseline.sh
artifacts:
paths:
- generated_test_images
expire_in: 3 day
when: manual
generate-ci-baseline-avx512skx:
<<: *ubuntu2004
<<: *test_job_unix_avx512skx
needs: [build-ubuntu2004-gcc]
script:
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/generate_baseline.sh
artifacts:
paths:
- generated_test_images
expire_in: 3 day
when: manual
### Benchmarks (Manual Runs) ###
benchmark-x8280-1:
<<: *benchmark_manual_job
tags: [vis-perf-x8280-1]
needs: [build-centos8]
benchmark-a-1:
<<: *benchmark_manual_job
tags: [vis-perf-a-1]
needs: [build-centos8]
benchmark-adl-1:
<<: *benchmark_manual_job
tags: [vis-sdp-adl-1-perf]
needs: [build-centos8]
benchmark-tgl-1:
<<: *benchmark_manual_job
tags: [vis-sdp-dg2-01-perf]
needs: [build-centos8]
### Benchmarks (Scheduled Runs) ###
benchmark-x8280-1-schedule:
<<: *benchmark_scheduled_job
tags: [vis-perf-x8280-1]
needs: [build-centos8]
benchmark-a-1-schedule:
<<: *benchmark_scheduled_job
tags: [vis-perf-a-1]
needs: [build-centos8]
benchmark-adl-1-schedule:
<<: *benchmark_scheduled_job
tags: [vis-sdp-adl-1-perf]
needs: [build-centos8]
benchmark-tgl-1-schedule:
<<: *benchmark_scheduled_job
tags: [vis-sdp-dg2-01-perf]
needs: [build-centos8]
### Documentation ###
.job_template: &doc-defaults
<<: *docu
stage: docu
needs: []
variables:
GIT_SUBMODULE_STRATEGY: normal
pdf:
<<: *doc-defaults
script:
- cd doc
- make pdf
- make checklinks
artifacts:
paths:
- readme.pdf
expire_in: 1 week
web:
<<: *doc-defaults
script:
- cd doc
- make www
artifacts:
paths:
- doc/www/*
expire_in: 1 week
spec:
<<: *doc-defaults
script:
- cd doc
- make spec
- mv www/images _images
artifacts:
paths:
- doc/ospray-spec.*
- doc/_images/*
expire_in: 1 week
### RELEASE JOBS ###
release-linux:
<<: *centos7
<<: *release_job
script:
- source $SPACK_SETUP_ENV
- module load cmake/3.15.2
- module load mpich/3.2
- module load intel/2022.1
- export CC=icx
- export CXX=icpx
- export CXXFLAGS="-fhonor-infinities -fhonor-nans"
- export LDFLAGS="-static-intel"
- scripts/release/linux.sh
artifacts:
paths:
- build_release/*.gz
expire_in: 3 day
release-osx-clang:
<<: *release_job
tags:
- clang
- osx
- sign
script:
- export CC=clang
- export CXX=clang++
- scripts/release/macosx.sh
- $SIGN_FILE_MAC -o runtime -e scripts/release/ospray.entitlements build_release/ospray-*pkg
- scripts/release/macosx_notarization.sh build_release/ospray-*.pkg
artifacts:
paths:
- build_release/*.zip
- build_release/*.pkg
expire_in: 3 day
release-windows:
<<: *release_job
tags:
- msvc15
- win
- mpi
script:
- scripts\release\win.ps1 "Visual Studio 15 2017 Win64"
- ;& $env:SIGN_FILE_WINDOWS ospray*.msi
artifacts:
paths:
- build_release\ospray*.zip
- build_release\ospray*.msi
expire_in: 3 day
### SCAN JOBS ###
kw-build:
<<: *centos7
stage: scan1
needs: []
script:
- module load cmake
- module load intel/2021.2
- scripts/build_gitlab/kw.sh
- test -s $CI_PROJECT_DIR/klocwork/build.log
- test -s $CI_PROJECT_DIR/klocwork/build_name
artifacts:
paths:
- ./klocwork/*
expire_in: 3 day
protex:
<<: *centos7
stage: scan1
needs: []
script:
- scripts/scan/protex.sh
kw-scan:
<<: *centos7
stage: scan2
needs: [kw-build]
script:
- scripts/scan/kw-check-issues.sh
kw-gen-report:
<<: *centos7
stage: scan2
needs: [kw-build]
only:
- devel
- master
- /release/
script:
- scripts/scan/kw-gen-report.sh
- scripts/scan/store-files.sh $CI_PROJECT_NAME $CI_PIPELINE_ID klocwork "klocwork/report.log"
artifacts:
paths:
- ./klocwork/report.log
bdba:
<<: *centos7
<<: *release_job
stage: scan3
needs:
- release-linux
- release-osx-clang
- release-windows
script:
- scripts/scan/bdba.sh "build_release/ospray*"
- scripts/scan/store-files.sh $CI_PROJECT_NAME $CI_PIPELINE_ID bdba "ospray-*.pdf"
- scripts/scan/store-files.sh $CI_PROJECT_NAME $CI_PIPELINE_ID bdba "ospray-*.csv"
artifacts:
paths:
- build_release/ospray-*
- ospray-*
av:
<<: *clamav
<<: *release_job
stage: scan3
needs:
- release-linux
- release-osx-clang
- release-windows
script:
- freshclam | tee -a /tmp/av_scan.log
- clamscan -va --max-filesize=512M --max-scansize=1024M --alert-broken --alert-exceeds-max build_release/ospray-* | tee -a /tmp/av_scan.log
- scripts/scan/store-files.sh $CI_PROJECT_NAME $CI_PIPELINE_ID av /tmp/av_scan.log
artifacts:
paths:
- build_release/ospray-*
test-release-linux:
<<: *centos7
<<: *test_job_unix_avx512skx
<<: *release_job
stage: scan3
needs: [release-linux]
script:
- source $SPACK_SETUP_ENV
- module load cmake/3.15.2
- module load mpich/3.2
- tar xzf build_release/*.gz
- PATH="$CI_PROJECT_DIR/`ls -d1 ospray-*/bin`:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX512SKX TEST_MPI
test-release-osx:
<<: *test_job
<<: *release_job
stage: scan3
tags: [osx, sign]
needs: [release-osx-clang]
script:
- unzip build_release/*.zip
- PATH="$CI_PROJECT_DIR/`ls -d1 ospray-*/bin`:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR" AVX2
- $SIGN_FILE_MAC -t $CI_PROJECT_DIR/ospray-*/bin/* $CI_PROJECT_DIR/ospray-*/lib/*.dylib $CI_PROJECT_DIR/build_release/*.pkg
test-release-windows-zip:
<<: *test_job
<<: *release_job
stage: scan3
tags: [win, mpi, avx512vl]
needs: [release-windows]
script:
- Expand-Archive build_release/*.zip -DestinationPath .
- $env:Path += ";" + (Get-ChildItem $CI_PROJECT_DIR\ospray-*\bin | Select-Object -Expand FullName)
- scripts\tests\run_tests.ps1 "$CI_PROJECT_DIR" AVX512SKX TEST_MPI
- ;& $env:SIGN_FILE_WINDOWS -t (Get-ChildItem $CI_PROJECT_DIR\ospray-*\bin\* | Select-Object -Expand FullName)
test-release-windows-msi:
<<: *test_job
<<: *release_job
stage: scan3
tags: [win, mpi, avx512vl]
needs: [release-windows]
script:
- msiexec.exe /a (Get-ChildItem build_release/*.msi | Select-Object -Expand FullName) /qn TARGETDIR=$CI_PROJECT_DIR
- $env:Path += ";$CI_PROJECT_DIR\Intel\OSPRay v2\bin"
- scripts\tests\run_tests.ps1 "$CI_PROJECT_DIR" AVX512SKX TEST_MPI
- ;& $env:SIGN_FILE_WINDOWS -t $CI_PROJECT_DIR/build_release/*.msi (Get-ChildItem "$CI_PROJECT_DIR\Intel\OSPRay v2\bin\*" | Select-Object -Expand FullName)
### Mirror ###
mirror:
<<: *centos7
stage: mirror
only: [devel]
dependencies: []
script:
- git remote add github https://${GITHUB_TOKEN}github.com/ospray/ospray.git
- git push github HEAD:devel