forked from SmileiPIC/Smilei
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
executable file
·184 lines (157 loc) · 5.11 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
stages:
- install
- compile_default
- run_quick
- run_default
- compile_picsar
- run_picsar
- compile_debug
- compile_no_mpi_threadmultiple
- compile_no_openmp
# - compile_omptasks
# - run_omptasks
install:
stage: install
only:
- develop
script:
# Force workdir cleaning in case of retried
- echo "CI_PIPELINE_ID = " $CI_PIPELINE_ID
- env
- if [ -d /sps3/gitlab-runner/$CI_PIPELINE_ID ] ; then rm -rf /sps/gitlab-runner/$CI_PIPELINE_ID ; fi
# Move in test dir
- mkdir -p /sps3/gitlab-runner/$CI_PIPELINE_ID
- cp -r $CI_PROJECT_DIR /sps3/gitlab-runner/$CI_PIPELINE_ID
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei
# Set the environment
- make uninstall_happi
- make happi
compile_default:
stage: compile_default
only:
- develop
script:
# Move in test dir
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -c -v -l "/sps3/gitlab-runner/logs" -t "00:30:00"
runQuick:
stage: run_quick
only:
- develop
script:
# Move in test dir
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -b "tst_quick_1d.py" -m 1 -o 1 -v
run1D:
stage: run_default
only:
- develop
script:
# Move in test dir
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -b "tst1d_*_*.py" -m 2 -o 12 -v -r 1 -l "/sps3/gitlab-runner/logs"
- python validation.py -b "tst_ionization_current_1d*.py" -m 2 -o 12 -v -r 1 -l "/sps3/gitlab-runner/logs"
run2D:
stage: run_default
only:
- develop
script:
# Move in test dir
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -b "tst2d_??_*.py" -m 4 -o 4 -n 1 -v -r 1 -l "/sps3/gitlab-runner/logs"
- python validation.py -b "tst2d_s_??_*.py" -m 4 -o 4 -n 1 -v -r 1 -l "/sps3/gitlab-runner/logs"
- python validation.py -b "tst2d_v_??_*.py" -m 4 -o 4 -n 1 -v -r 1 -l "/sps3/gitlab-runner/logs"
- python validation.py -b "tst_ionization_current_2d*.py" -m 4 -o 4 -n 1 -v -r 1 -l "/sps3/gitlab-runner/logs"
run3D:
stage: run_default
only:
- develop
script:
# Move in test dir
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -b "tst3d_??_*.py" -m 8 -o 12 --resource-file resources.json -v -r 1 -l "/sps3/gitlab-runner/logs"
- python validation.py -b "tst3d_s_??_*.py" -m 8 -o 12 --resource-file resources.json -v -r 1 -l "/sps3/gitlab-runner/logs"
- python validation.py -b "tst3d_v_??_*.py" -m 8 -o 12 --resource-file resources.json -v -r 1 -l "/sps3/gitlab-runner/logs"
- python validation.py -b "tst3d_a_??_*.py" -m 8 -o 12 --resource-file resources.json -v -r 1 -l "/sps3/gitlab-runner/logs"
- python validation.py -b "tst_ionization_current_3d*.py" -m 4 -o 4 -n 1 -v -r 1 -l "/sps3/gitlab-runner/logs"
runAM:
stage: run_default
only:
- develop
script:
# Move in test dir
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -b "tstAM_??_*.py" -m 8 -o 12 -v -t 00:30:00 -l "/sps3/gitlab-runner/logs"
- python validation.py -b "tstAM_v_??_*.py" -m 8 -o 12 -v -t 00:30:00 -l "/sps3/gitlab-runner/logs"
runCollisions:
stage: run_default
only:
- develop
script:
# Move in test dir
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run checking script
- python validation.py -b "tst_collisions*.py" -m 4 -o 4 -n 1 -v -r 1 -l "/sps3/gitlab-runner/logs"
compile_picsar:
stage: compile_picsar
only:
- develop
script:
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei
- make clean
- python validation/validation.py -k picsar -c -v
run_picsar:
stage: run_picsar
only:
- develop
script:
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
- python validation.py -k picsar -b "tstAM_picsar_04_laser_wake.py" -m 4 -o 4 -n 1 -v
compile_debug:
stage: compile_debug
only:
- develop
script:
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei
- make clean
- python validation/validation.py -k debug -c -v
compile_no_mpi_threadmultiple:
stage: compile_no_mpi_threadmultiple
only:
- develop
script:
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei
- make clean
- python validation/validation.py -k no_mpi_tm -c -v
compile_no_openmp:
stage: compile_no_openmp
only:
- develop
script:
- cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei
- make clean
- python validation/validation.py -k noopenmp -c -v
#compile_omptasks:
# stage: compile_omptasks
# only:
# - develop
#
# script:
# - cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei
# - make clean
# - python validation/validation.py -k omptasks -c -v
#
#run_omptasks:
# stage: run_omptasks
# only:
# - develop
#
# script:
# - cd /sps3/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# - python validation.py -k omptasks -b "tst2d_tasks_01_radiation_pressure_acc.py" -m 4 -o 4 -n 1 -v