forked from SmileiPIC/Smilei
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
94 lines (81 loc) · 2.25 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
stages:
- compile
- makerun
compile:
stage: compile
only:
- develop
- envelope_optimization_1d_2d
script:
# Force workdir cleaning in case of retried
- if [ -d /sps2/gitlab-runner/$CI_PIPELINE_ID ] ; then rm -rf /sps2/gitlab-runner/$CI_PIPELINE_ID ; fi
# Move in test dir
- mkdir -p /sps2/gitlab-runner/$CI_PIPELINE_ID
- cp -r $CI_PROJECT_DIR /sps2/gitlab-runner/$CI_PIPELINE_ID
- cd /sps2/gitlab-runner/$CI_PIPELINE_ID/smilei
# Set the environment
- make uninstall_happi
- make happi
- cd /sps2/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -c -v
makerun1D:
stage: makerun
only:
- develop
- envelope_optimization_1d_2d
script:
# Move in test dir
- cd /sps2/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -b "tst1d_*_*.py" -m 4 -o 4 -v -r 1
makerun2D:
stage: makerun
only:
- develop
- envelope_optimization_1d_2d
script:
# Move in test dir
- cd /sps2/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -b "tst2d_*_*.py" -m 4 -o 4 -v -r 1
makerun3D:
stage: makerun
only:
- develop
- envelope_optimization_1d_2d
script:
# Move in test dir
- cd /sps2/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -b "tst3d_??_*.py" -m 4 -o 4 -v -r 1
#makerunAM:
# stage: makerun
# only:
# - develop
#
# script:
# # Move in test dir
# - cd /sps2/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# # Run validation script
# - python validation.py -b "tstAM_??_*.py" -m 4 -o 4 -v
makerunV:
stage: makerun
only:
- develop
- envelope_optimization_1d_2d
script:
# Move in test dir
- cd /sps2/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run validation script
- python validation.py -b "tst?d_v_??_*.py" -m 4 -o 4 -v -r 1
makerunCollisions:
stage: makerun
only:
- develop
- envelope_optimization_1d_2d
script:
# Move in test dir
- cd /sps2/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
# Run checking script
- python validation.py -b "tst_collisions*.py" -m 4 -o 4 -v -r 1