-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
121 lines (112 loc) · 3.46 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
stages:
- lint
- build
- test
checkbadchars:
stage: lint
script: >
test $(grep -caxv '.*' *.f *.f90 *.h README* |
cut -d: -f2 | awk '{ SUM += $1} END { print SUM }') -eq 0
enforce_unixish:
stage: lint
script: test $(file -k *.f *.f90 *.h | grep -c "CRLF") -eq 0
build:centos7:
stage: build
image: csmiet/testspec
script:
- make CC=gfortran xspec
artifacts:
paths:
- xspec
expire_in: 1 week
# do it yourself:
# docker run -v `pwd`:`pwd` -w `pwd` csmiet/testspec make CC=gfortran xspec
stable_force_free_sheet:
stage: test
image: csmiet/testspec
script:
- source source.sh
- cd ci/G1V03L2Fi
- xspec G1V03L2Fi.001.sp
- python3 -m py_spec.ci.test compare.h5 G1V03L2Fi.001.sp.h5
#comparison python3 -m py_spec.ci.testspec f1 f2
artifacts:
when: always
paths:
- ci/G1V03L2Fi/G1V03L2Fi.001.sp.h5
expire_in: 1 week
dependencies:
- build:centos7
# reproduce:
# docker run -v `pwd`:`pwd` -w `pwd` csmiet/testspec sh -c 'source ./source.sh;cd ci/G1V03L2Fi; xspec G1V03L2Fi.001.sp; python3 -m py_spec.ci.test compare.h5 G1V03L2Fi.001.sp.h5'
cylindrical_many_volumes:
stage: test
image: csmiet/testspec
script:
- source source.sh
- cd ci/G2V32L1Fi
- xspec G2V32L1Fi.001.sp
- python3 -m py_spec.ci.test compare.h5 G2V32L1Fi.001.sp.h5
artifacts:
when: always
paths:
- ci/G2V32L1Fi/G2V32L1Fi.001.sp.h5
expire_in: 1 week
dependencies:
- build:centos7
# reproduce:
# docker run -v `pwd`:`pwd` -w `pwd` csmiet/testspec sh -c 'source ./source.sh; cd ci/G2V32L1Fi; xspec G2V32L1Fi.001.sp; python3 -m py_spec.ci.test compare.h5 G2V32L1Fi.001.sp.h5 '
toroidal_freeboundary_vacuum:
stage: test
image: csmiet/testspec
script:
- source source.sh
- cd ci/toroidal_freeboundary_vacuum
- mpirun -n 4 --allow-run-as-root xspec G3V02L0Fr.sp
- python3 -m py_spec.ci.test compare.h5 G3V02L0Fr.sp.h5 --tol 1e-10
artifacts:
when: always
paths:
- ci/toroidal_freeboundary_vacuum/G3V02L0Fr.sp.h5
expire_in: 1 week
dependencies:
- build:centos7
# reproduce:
# docker run -v `pwd`:`pwd` -w `pwd` csmiet/testspec sh -c 'source ./source.sh; cd ci/toroidal_freeboundary_vacuum; mpirun -n 4 --allow-run-as-root xspec G3V02L0Fr.sp; python3 -m py_spec.ci.test compare.h5 G3V02L0Fr.sp.h5'
#
#
CurrentConstraint_fixed:
stage: test
image: csmiet/testspec
script:
- source source.sh
- cd ci/G3V08L3Fi
- mpirun -n 4 --allow-run-as-root xspec G3V08L3Fi.001.sp
- python3 -m py_spec.ci.test compare.h5 G3V08L3Fi.001.sp.h5 --tol 1e-10
artifacts:
when: always
paths:
- ci/G3V08L3Fi/G3V08L3Fi.001.sp.h5
expire_in: 1 week
dependencies:
- build:centos7
# reproduce:
# docker run -v `pwd`:`pwd` -w `pwd` csmiet/testspec sh -c 'source ./source.sh; cd ci/G3V08L3Fi; mpirun -n 4 --allow-run-as-root xspec G3V08L3Fi.001.sp; python3 -m py_spec.ci.test compare.h5 G3V08L3Fi.001.sp.h5'
#
CurrentConstraint_free:
stage: test
image: csmiet/testspec
script:
- source source.sh
- cd ci/G3V08L3Fr
- mpirun -n 4 --allow-run-as-root xspec G3V08L3Fr.001.sp
- python3 -m py_spec.ci.test compare.h5 G3V08L3Fr.001.sp.h5 --tol 1e-10
artifacts:
when: always
paths:
- ci/G3V08L3Fr/G3V08L3Fr.001.sp.h5
expire_in: 1 week
dependencies:
- build:centos7
# reproduce:
# docker run -v `pwd`:`pwd` -w `pwd` csmiet/testspec sh -c 'source ./source.sh; cd ci/G3V08L3Fr; mpirun -n 4 --allow-run-as-root xspec G3V08L3Fr.001.sp; python3 -m py_spec.ci.test compare.h5 G3V08L3Fr.001.sp.h5'