forked from idefix-code/idefix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
168 lines (151 loc) · 4.76 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
variables:
GIT_SUBMODULE_STRATEGY: recursive
workflow:
rules:
- if: $CI_MERGE_REQUEST_ID # Execute jobs in merge request context
- if: $CI_COMMIT_BRANCH == 'master' # Execute jobs when a new commit is pushed to master branch
- if: $CI_PIPELINE_SOURCE == 'web' # execute jobs when created by using Run pipeline button in the GitLab UI, from the project’s CI/CD > Pipelines section.
stages:
- linter
- base_checks
- advanced_checks
- documentation
lint:
stage: linter
image: lesurg/idefix:latest
script:
- pre-commit install
- pre-commit run --all-files
Shocks Hydro:
stage: base_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/HD/sod
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/HD/sod-iso
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/HD/MachReflection
- ./testme.py -all $TESTME_OPTIONS
Parabolic Hydro:
stage: base_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/HD/ViscousFlowPastCylinder
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/HD/ViscousDisk
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/HD/thermalDiffusion
- ./testme.py -all $TESTME_OPTIONS
Shocks MHD:
stage: base_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/MHD/sod
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/MHD/sod-iso
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/MHD/OrszagTang
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/MHD/OrszagTang3D
- ./testme.py -all $TESTME_OPTIONS
Parabolic MHD:
stage: base_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/MHD/AmbipolarCshock
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/MHD/AmbipolarCshock3D
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/MHD/ResistiveAlfvenWave
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/MHD/HallWhistler
- ./testme.py -all $TESTME_OPTIONS
Fargo:
stage: advanced_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/HD/FargoPlanet
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/MHD/FargoMHDSpherical
- ./testme.py -all $TESTME_OPTIONS
ShearingBox:
stage: advanced_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/HD/ShearingBox
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/HD/ShearingBox
- ./testme.py -all $TESTME_OPTIONS
SelfGravity:
stage: advanced_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/SelfGravity/JeansInstability
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/SelfGravity/RandomSphere
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/SelfGravity/RandomSphereCartesian
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/SelfGravity/UniformCollapse
- ./testme.py -all $TESTME_OPTIONS
Planet:
stage: advanced_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/Planet/Planet3Body
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/Planet/PlanetMigration2D
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/Planet/PlanetPlanetRK42D
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/Planet/PlanetSpiral2D
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/Planet/PlanetTorque3D
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/Planet/PlanetsIsActiveRK52D
- ./testme.py -all $TESTME_OPTIONS
Dust:
stage: advanced_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/Dust/DustEnergy
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/Dust/DustyWave
- ./testme.py -all $TESTME_OPTIONS
Examples tests:
stage: advanced_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd test
- ./checks_examples.sh $TEST_OPTIONS
Utils tests:
stage: advanced_checks
image: lesurg/idefix:latest
script:
- export IDEFIX_DIR=${PWD}
- cd $IDEFIX_DIR/test/utils/lookupTable
- ./testme.py -all $TESTME_OPTIONS
- cd $IDEFIX_DIR/test/utils/dumpImage
- ./testme.py -all $TESTME_OPTIONS
pages:
image: lesurg/idefix-documentation:latest
stage: documentation
script:
- dir="public"
- rm -rf $dir
- sphinx-build -b html doc/source $dir
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == "master" && $DOCUMENTATION == "true"