-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
1271 lines (1145 loc) · 32.4 KB
/
.gitlab-ci.yml
File metadata and controls
1271 lines (1145 loc) · 32.4 KB
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
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
###############################################################################
# Job control
###############################################################################
image: jugit-registry.fz-juelich.de/eirene/eirene-ci-image/debianbullseye
include:
- '.update_fork_branches.yml'
- '.tag_and_deploy.yml'
variables:
SERVER_DOMAIN: 'jugit.fz-juelich.de'
# DMH/uppercase_extensions
SAMPLE_CASE_VERSION: 2e7aeb793f5c54d67c350525a2007231a1b0c863
# eirene_unified_bullseye
# SAMPLE_CASE_VERSION: 313c4eef6edbf8af7c398886c47ef4a9eddf0f21
# OpenMP test cases, at present these exist in their own branch created from the
# first commit. This can be merged at any time.
# DMH/uppercase_extensions_OpenMP
SAMPLE_CASE_VERSION_OPENMP: a0f2b4564d237ffbbb11517407aaa5ccc98a824b
# eirene_unified_openmp_bullseye
# SAMPLE_CASE_VERSION_OPENMP: f532a411c370bc1b499ab1c1e897327472232e7b
# Compatible EMC3 version with this EIRENE version
EMC3_REPOSITORY_VERSION: 2f24415ec311d1479a67597ef678a2fe6fe49ec4
# These variables allow the exclusion of certain stages to speed up development, true or false
EXCLUDE_SERIAL: 'false'
EXCLUDE_MPI: 'false'
EXCLUDE_OPENMP: 'false'
EXCLUDE_EMC3: 'false'
# Coverage takes a long time to run so by default is excluded
EXCLUDE_COVERAGE: 'true'
stages:
- compliance
- preparation
- build:executable
- run
- run_mpi
- test
- preparation:openmp
- build:openmp_executable
- run_openmp
- test_openmp
- coverage
- tag
- deploy
- on-schedule
workflow:
name: 'EIRENE CI Pipeline for branch $CI_COMMIT_BRANCH'
rules:
- if: ($CI_COMMIT_REF_NAME == 'develop' || $CI_COMMIT_REF_NAME == 'master')
variables:
EXCLUDE_SERIAL: 'false'
EXCLUDE_MPI: 'false'
EXCLUDE_OPENMP: 'false'
EXCLUDE_EMC3: 'false'
EXCLUDE_COVERAGE: 'false'
- if: $EXCLUDE_SERIAL == 'true'
variables:
EXCLUDE_EMC3: 'true'
EXCLUDE_MPI: 'true'
- if: $EXCLUDE_EMC3 == 'true'
variables:
EXCLUDE_MPI: 'true'
- when: always
###############################################################################
# Compliance tests to ensure code meets requirements
# - at present just version number
###############################################################################
compliance_check:
stage: compliance
script:
- hooks/ci_version_check.sh
###############################################################################
# Serial tests
###############################################################################
build_library:
stage: preparation
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_SERIAL == 'true'
when: never
- when: on_success
script:
- mkdir buildRelease
- cd buildRelease
- FC=mpif90 cmake ../src
- make -j EIRENE
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
when: always
needs:
- compliance_check
prepare_testcases:
stage: preparation
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_SERIAL == 'true'
when: never
- when: on_success
script:
# Make only shallow clone (fetch) of single commit defined by SHA key
- mkdir EIRENE-sample-cases
- cd EIRENE-sample-cases
- git init
- git remote add origin https://gitlab-ci-token:${CI_JOB_TOKEN}@${SERVER_DOMAIN}/eirene/EIRENE-sample-cases.git
- git fetch --depth 1 origin ${SAMPLE_CASE_VERSION}
- git checkout FETCH_HEAD
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- EIRENE-sample-cases
exclude:
- EIRENE-sample-cases/.git/**
when: always
needs:
- compliance_check
.build_executable: &build_executable
stage: build:executable
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_SERIAL == 'true'
when: never
- when: on_success
script:
- cd EIRENE-sample-cases/${PATH_CASE}
- make -j
- ls --full-time eirene || true
- ls --full-time ../../src/main-routines/eirene_main.F || true
- ls --full-time eirene_main.o || true
retry: 2
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- binRelease
- src
- EIRENE-sample-cases/${PATH_CASE}
when: always
needs:
- build_library
- prepare_testcases
build_iter_executable:
stage: preparation
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_SERIAL == 'true'
when: never
- when: on_success
script:
- mkdir buildRelease
- cd buildRelease
- FC=mpif90 cmake ../src -DCMAKE_BUILD_TYPE=Release -DEIRENE_INTERFACE=SOLPS-ITER -DEIRENE_USER-ROUTINES=iter -DEIRENE_POSTFIX=_iter -DOPENMP=OFF -DMPI=OFF -DCHECKBIN=OFF
- make -j EIRENE
- make -j eirene
retry: 2
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- binRelease
- src
when: always
needs:
- compliance_check
.run: &run
stage: run
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_SERIAL == 'true'
when: never
- when: on_success
script:
- cd EIRENE-sample-cases/${PATH_CASE}
- ls --full-time eirene || true
- ls --full-time ../../src/main-routines/eirene_main.F || true
- ls --full-time eirene_main.o || true
- make output
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- binRelease
- src
- EIRENE-sample-cases/${PATH_CASE}
when: always
.test: &test
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_SERIAL == 'true'
when: never
- when: on_success
script:
- cd EIRENE-sample-cases/${PATH_CASE}
- ls --full-time eirene || true
- ls --full-time ../../src/main-routines/eirene_main.F || true
- ls --full-time eirene_main.o || true
- make test
retry: 2
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- binRelease
- src
- EIRENE-sample-cases/${PATH_CASE}
when: always
######################################################################################
# The individual serial test cases
######################################################################################
build_standalone_1D-H_slab:
<<: *build_executable
variables:
PATH_CASE: "1D-H_slab"
run_standalone_1D-H_slab:
<<: *run
variables:
PATH_CASE: "1D-H_slab"
needs:
- build_standalone_1D-H_slab
test_standalone_1D-H_slab:
<<: *test
variables:
PATH_CASE: "1D-H_slab"
needs:
- run_standalone_1D-H_slab
build_standalone_1D_slab_with_farming:
<<: *build_executable
variables:
PATH_CASE: "1D-H_slab_with_farming"
rules:
- if: $CI_COMMIT_REF_NAME == 'PB/feature/farming'
run_standalone_1D-H_slab_with_farming:
<<: *run
variables:
PATH_CASE: "1D-H_slab_with_farming"
rules:
- if: $CI_COMMIT_REF_NAME == 'PB/feature/farming'
needs:
- build_standalone_1D_slab_with_farming
test_standalone_1D-H_slab_with_farming:
<<: *test
variables:
PATH_CASE: "1D-H_slab_with_farming"
rules:
- if: $CI_COMMIT_REF_NAME == 'PB/feature/farming'
needs:
- run_standalone_1D-H_slab_with_farming
build_standalone_1D_cylindric:
# in fact it is a build_standalone but stored in ...1D_cylindric
<<: *build_executable
variables:
PATH_CASE: "1D_cylindric"
run_standalone_1D_cylindric:
<<: *run
variables:
PATH_CASE: "1D_cylindric"
needs:
- build_standalone_1D_cylindric
test_standalone_1D_cylindric:
<<: *test
variables:
PATH_CASE: "1D_cylindric"
needs:
- run_standalone_1D_cylindric
build_standalone_1D_elliptic:
# in fact it is a build_standalone but stored in ...1D_cylindric
<<: *build_executable
variables:
PATH_CASE: "1D_elliptic"
run_standalone_1D_elliptic:
<<: *run
variables:
PATH_CASE: "1D_elliptic"
needs:
- build_standalone_1D_elliptic
test_standalone_1D_elliptic:
<<: *test
variables:
PATH_CASE: "1D_elliptic"
needs:
- run_standalone_1D_elliptic
build_standalone_2D_slab:
<<: *build_executable
variables:
PATH_CASE: "2D-D_slab"
run_standalone_2D-D_slab:
<<: *run
variables:
PATH_CASE: "2D-D_slab"
needs:
- build_standalone_2D_slab
test_standalone_2D-D_slab:
<<: *test
variables:
PATH_CASE: "2D-D_slab"
needs:
- run_standalone_2D-D_slab
build_standalone_2D_slab_finite_cylinder_11x11:
<<: *build_executable
variables:
PATH_CASE: "2D-D_slab_finite_cylinder_11x11"
run_standalone_2D-D_slab_finite_cylinder_11x11:
<<: *run
variables:
PATH_CASE: "2D-D_slab_finite_cylinder_11x11"
needs:
- build_standalone_2D_slab_finite_cylinder_11x11
test_standalone_2D-D_slab_finite_cylinder_11x11:
<<: *test
variables:
PATH_CASE: "2D-D_slab_finite_cylinder_11x11"
needs:
- run_standalone_2D-D_slab_finite_cylinder_11x11
build_standalone_2D_polygon:
<<: *build_executable
variables:
PATH_CASE: "2D-D_polygon"
run_standalone_2D-D_polygon:
<<: *run
variables:
PATH_CASE: "2D-D_polygon"
needs:
- build_standalone_2D_polygon
test_standalone_2D-D_polygon:
<<: *test
variables:
PATH_CASE: "2D-D_polygon"
needs:
- run_standalone_2D-D_polygon
build_standalone_2D_polygon_NLPLG:
<<: *build_executable
variables:
PATH_CASE: "2D-D_polygon_NLPLG"
run_standalone_2D-D_polygon_NLPLG:
<<: *run
variables:
PATH_CASE: "2D-D_polygon_NLPLG"
needs:
- build_standalone_2D_polygon_NLPLG
test_standalone_2D-D_polygon_NLPLG:
<<: *test
variables:
PATH_CASE: "2D-D_polygon_NLPLG"
needs:
- run_standalone_2D-D_polygon_NLPLG
build_standalone_2D_triang:
<<: *build_executable
variables:
PATH_CASE: "2D-D_triang"
run_standalone_2D-D_triang:
<<: *run
variables:
PATH_CASE: "2D-D_triang"
needs:
- build_standalone_2D_triang
test_standalone_2D-D_triang:
<<: *test
variables:
PATH_CASE: "2D-D_triang"
needs:
- run_standalone_2D-D_triang
build_standalone_3D_slab_11x11x11:
<<: *build_executable
variables:
PATH_CASE: "3D-D_slab_11x11x11"
run_standalone_3D-D_slab_11x11x11:
<<: *run
variables:
PATH_CASE: "3D-D_slab_11x11x11"
needs:
- build_standalone_3D_slab_11x11x11
test_standalone_3D-D_slab_11x11x11:
<<: *test
variables:
PATH_CASE: "3D-D_slab_11x11x11"
needs:
- run_standalone_3D-D_slab_11x11x11
build_standalone_3D_tetra:
<<: *build_executable
variables:
PATH_CASE: "3D-D_tetra"
run_standalone_3D-D_tetra:
<<: *run
variables:
PATH_CASE: "3D-D_tetra"
needs:
- build_standalone_3D_tetra
test_standalone_3D-D_tetra:
<<: *test
variables:
PATH_CASE: "3D-D_tetra"
needs:
- run_standalone_3D-D_tetra
build_standalone_ALT2S:
<<: *build_executable
variables:
PATH_CASE: "ALT2S"
run_standalone_ALT2S:
<<: *run
variables:
PATH_CASE: "ALT2S"
needs:
- build_standalone_ALT2S
test_standalone_ALT2S:
<<: *test
variables:
PATH_CASE: "ALT2S"
needs:
- run_standalone_ALT2S
build_standalone_ALT2S_bits:
<<: *build_executable
variables:
PATH_CASE: "ALT2S_bits"
run_standalone_ALT2S_bits:
<<: *run
variables:
PATH_CASE: "ALT2S_bits"
needs:
- build_standalone_ALT2S_bits
test_standalone_ALT2S_bits:
<<: *test
variables:
PATH_CASE: "ALT2S_bits"
needs:
- run_standalone_ALT2S_bits
build_standalone_cylinder:
<<: *build_executable
variables:
PATH_CASE: "cylinder"
run_standalone_cylinder:
<<: *run
variables:
PATH_CASE: "cylinder"
needs:
- build_standalone_cylinder
test_standalone_cylinder:
<<: *test
variables:
PATH_CASE: "cylinder"
needs:
- run_standalone_cylinder
build_standalone_cylinder_triang_no_octree:
<<: *build_executable
variables:
PATH_CASE: "cylinder_triang_no_octree"
run_standalone_cylinder_triang_no_octree:
<<: *run
variables:
PATH_CASE: "cylinder_triang_no_octree"
needs:
- build_standalone_cylinder_triang_no_octree
test_standalone_cylinder_triang_no_octree:
<<: *test
variables:
PATH_CASE: "cylinder_triang_no_octree"
needs:
- run_standalone_cylinder_triang_no_octree
build_standalone_cylinder_triang_octree:
<<: *build_executable
variables:
PATH_CASE: "cylinder_triang_octree"
run_standalone_cylinder_triang_octree:
<<: *run
variables:
PATH_CASE: "cylinder_triang_octree"
needs:
- build_standalone_cylinder_triang_octree
test_standalone_cylinder_triang_octree:
<<: *test
variables:
PATH_CASE: "cylinder_triang_octree"
needs:
- run_standalone_cylinder_triang_octree
######################################################################################
# ITER cases
######################################################################################
#build_standalone_ITER_1573:
# <<: *build_iter_executable
# variables:
# PATH_CASE: "ITER_1573"
run_standalone_ITER_1573:
<<: *run
variables:
PATH_CASE: "ITER_1573"
needs:
- build_iter_executable
- prepare_testcases
test_standalone_ITER_1573:
<<: *test
variables:
PATH_CASE: "ITER_1573"
needs:
- run_standalone_ITER_1573
#build_standalone_ITER_1573_scaling:
# <<: *build_iter_executable
# variables:
# PATH_CASE: "ITER_1573_scaling"
run_standalone_ITER_1573_scaling:
<<: *run
variables:
PATH_CASE: "ITER_1573_scaling"
needs:
- build_iter_executable
- prepare_testcases
test_standalone_ITER_1573_scaling:
<<: *test
variables:
PATH_CASE: "ITER_1573_scaling"
needs:
- run_standalone_ITER_1573_scaling
#uild_standalone_ITER_1573_def_lines:
# <<: *build_iter_executable
# variables:
# PATH_CASE: "ITER_1573_def_lines"
run_standalone_ITER_1573_def_lines:
<<: *run
variables:
PATH_CASE: "ITER_1573_def_lines"
needs:
- build_iter_executable
- prepare_testcases
test_standalone_ITER_1573_def_lines:
<<: *test
variables:
PATH_CASE: "ITER_1573_def_lines"
needs:
- run_standalone_ITER_1573_def_lines
#uild_standalone_ITER_1573_dens_model:
# <<: *build_iter_executable
# variables:
# PATH_CASE: "ITER_1573_dens_model"
run_standalone_ITER_1573_dens_model:
<<: *run
variables:
PATH_CASE: "ITER_1573_dens_model"
needs:
- build_iter_executable
- prepare_testcases
test_standalone_ITER_1573_dens_model:
<<: *test
variables:
PATH_CASE: "ITER_1573_dens_model"
needs:
- run_standalone_ITER_1573_dens_model
###############################################################################
# EMC3 cases
###############################################################################
build_EMC3-EIRENE:
<<: *build_executable
variables:
PATH_CASE: "EMC3"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
run_EMC3-EIRENE_H:
<<: *run
variables:
PATH_CASE: "EMC3/W7X_Limiter/H"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- build_EMC3-EIRENE
test_EMC3-EIRENE_H:
<<: *test
variables:
PATH_CASE: "EMC3/W7X_Limiter/H"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: always
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- run_EMC3-EIRENE_H
run_EMC3-EIRENE_He:
<<: *run
variables:
PATH_CASE: "EMC3/W7X_Limiter/He"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- build_EMC3-EIRENE
test_EMC3-EIRENE_He:
<<: *test
variables:
PATH_CASE: "EMC3/W7X_Limiter/He"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- run_EMC3-EIRENE_He
run_EMC3-EIRENE_H_multiStrata:
<<: *run
variables:
PATH_CASE: "EMC3/W7X_Limiter/H_multiStrata"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- build_EMC3-EIRENE
test_EMC3-EIRENE_H_multiStrata:
<<: *test
variables:
PATH_CASE: "EMC3/W7X_Limiter/H_multiStrata"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
dependencies:
- run_EMC3-EIRENE_H_multiStrata
needs:
- run_EMC3-EIRENE_H_multiStrata
run_EMC3-EIRENE_H_profile:
<<: *run
variables:
PATH_CASE: "EMC3/W7X_Limiter/H_profile"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- build_EMC3-EIRENE
test_EMC3-EIRENE_H_profile:
<<: *test
variables:
PATH_CASE: "EMC3/W7X_Limiter/H_profile"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- run_EMC3-EIRENE_H_profile
###############################################################################
# MPI tests - at present using EMC3
###############################################################################
# Create individual stage for mpi-jobs due to recource limits (memory?)
# of gitlab runner at juelich gitlab
# this forces to mpi jobs to be run sequencially
run_mpi_cases:
stage: run_mpi
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_MPI == 'true'
when: never
- when: on_success
before_script:
# Bypass mpirun abort due to execution as root
- export MPIRUN_FLAGS='--allow-run-as-root'
- export OMP_NUM_THREADS=1
script:
# job: run_EMC3-EIRENE_H_multiStrataMpi
- cd EIRENE-sample-cases/EMC3/W7X_Limiter/H_multiStrataMpi
- make output
- cd ../../../../
# job: run_EMC3-EIRENE_H_multiStrataMpi2
- cd EIRENE-sample-cases/EMC3/W7X_Limiter/H_multiStrataMpi2
- make output
- cd ../../../../
# job: run_EMC3-EIRENE_H_multiStrataMpi3
- cd EIRENE-sample-cases/EMC3/W7X_Limiter/H_multiStrataMpi3
- make output
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- build_EMC3-EIRENE
test_EMC3-EIRENE_H_multiStrataMpi:
<<: *test
variables:
PATH_CASE: "EMC3/W7X_Limiter/H_multiStrataMpi"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_MPI == 'true'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- run_mpi_cases
test_EMC3-EIRENE_H_multiStrataMpi2:
<<: *test
variables:
PATH_CASE: "EMC3/W7X_Limiter/H_multiStrataMpi2"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_MPI == 'true'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- run_mpi_cases
test_EMC3-EIRENE_H_multiStrataMpi3:
<<: *test
variables:
PATH_CASE: "EMC3/W7X_Limiter/H_multiStrataMpi3"
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_MPI == 'true'
when: never
- if: $EXCLUDE_EMC3 == 'true'
when: never
- when: on_success
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease
- libRelease
- src
- EIRENE-sample-cases/EMC3
when: always
needs:
- run_mpi_cases
###############################################################################
# Coverage
###############################################################################
coverage_report:
stage: coverage
coverage: '/(TOTAL COVERAGE .*%)/'
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $CI_COMMIT_REF_NAME == 'develop'
- if: $CI_COMMIT_REF_NAME == 'master'
- if: $EXCLUDE_COVERAGE == 'false'
- if: $EXCLUDE_COVERAGE == 'true'
when: never
before_script:
# Bypass mpirun abort due to execution as root
- export MPIRUN_FLAGS='--allow-run-as-root'
script:
- mkdir buildCoverage
- cd buildCoverage
- FC=mpif90 cmake ../src -DCMAKE_BUILD_TYPE=Coverage
- make -j EIRENE
- cd ..
- mkdir EIRENE-sample-cases
- cd EIRENE-sample-cases
- git init
- git remote add origin https://gitlab-ci-token:${CI_JOB_TOKEN}@${SERVER_DOMAIN}/eirene/EIRENE-sample-cases.git
- git fetch --depth 1 origin ${SAMPLE_CASE_VERSION}
- git checkout FETCH_HEAD
- make coverageReport FFLAGS="-g -cpp -fprofile-arcs -ftest-coverage" CONFIG=Coverage
- lcov --summary coverage.info 2>&1 | grep lines | sed 's/^/ TOTAL COVERAGE/'
dependencies: []
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- EIRENE-sample-cases/coverage.info
- EIRENE-sample-cases/coverageReport
when: always
###############################################################################
# OpenMP tests
###############################################################################
build_openmp_library:
stage: preparation:openmp
rules:
- if: $CI_PIPELINE_SOURCE == 'schedule'
when: never
- if: $EXCLUDE_OPENMP == 'true'
when: never
- when: on_success
script:
- mkdir -p buildRelease
- cd buildRelease
- rm -rf ./*
- FC=mpif90 cmake -DOPENMP=ON ../src
- make clean
- make -j EIRENE
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- buildRelease/
- libRelease/
- src
when: always
needs:
- compliance_check