forked from SmileiPIC/Smilei
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
81 lines (71 loc) · 1.97 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
stages:
- compile
- makerun
compile:
stage: compile
only:
- develop
- dev_issue226
- projection_for_diags
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 happi
- cd /sps2/gitlab-runner/$CI_PIPELINE_ID/smilei/validation
- module purge
- module load compilers/icc/17.3.191
- module load hdf5/1.8.12-icc
- module load mpi/openmpi/1.6.5-ib-icc
- module load python/2.7.10
- module list 2> module.log
# Run validation script
- python validation.py -c -v
makerun1D:
stage: makerun
only:
- develop
- dev_issue226
- projection_for_diags
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
- dev_issue226
- projection_for_diags
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
- dev_issue226
- projection_for_diags
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
makerunCollisions:
stage: makerun
only:
- develop
- dev_issue226
- projection_for_diags
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