-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
190 lines (168 loc) · 4.22 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
185
186
187
188
189
190
stages:
- build
- test
- quality
.build_image_debian_docker: &build_image_debian_docker_definition
tags:
- docker
- linux
before_script:
- ./tools/ci/setup_buildenv_debian.sh
.runtime_image_debian_docker: &runtime_image_debian_docker_definition
tags:
- docker
- linux
before_script:
- ./tools/ci/setup_runtime_debian.sh
.image_lrz_haswell: &image_lrz_haswell_definition
tags:
- linux
- ssh
- lrzhaswell
.build_template_make: &build_definition_make
stage: build
script:
- mkdir -p build
- cd build
- cmake $CMAKE_FLAGS -DWITH_TESTS=ON
-DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_PREFIX_PATH=$PREFIX ..
- cmake --build .
- cmake --build . --target install
artifacts:
paths:
- "build/"
.test_template_cpp_examples: &test_definition_cpp_examples
stage: test
script:
- cd build
- ctest
- mbsolve-tool/mbsolve-tool -d ziolkowski1995 -e 100e-15
-m cpu-fdtd-red-2lvl-cvr-rodr -w hdf5
- mbsolve-tool/mbsolve-tool -d song2005 -e 16e-15
-m cpu-fdtd-red-3lvl-cvr-rodr -w hdf5
- mbsolve-tool/mbsolve-tool -d marskar2011 -e 40e-15
-m cpu-fdtd-red-6lvl-cvr-rodr -w hdf5
artifacts:
paths:
- "build/"
.test_template_python_examples: &test_definition_python_examples
stage: test
script:
- cd build
- PYTHONPATH=.:$PYTHONPATH python3 ../tools/python/ziolkowski1995.py
- PYTHONPATH=.:$PYTHONPATH python3 ../tools/python/song2005.py
artifacts:
paths:
- "build/"
build-debian-8:
only:
- master
image: debian:8
<<: *build_image_debian_docker_definition
<<: *build_definition_make
test-cpp-examples-debian-8:
only:
- master
image: debian:8
<<: *runtime_image_debian_docker_definition
dependencies:
- build-debian-8
<<: *test_definition_cpp_examples
test-py-examples-debian-8:
only:
- master
image: debian:8
<<: *runtime_image_debian_docker_definition
dependencies:
- build-debian-8
<<: *test_definition_python_examples
build-debian-9:
only:
- master
image: debian:9
<<: *build_image_debian_docker_definition
<<: *build_definition_make
test-cpp-examples-debian-9:
only:
- master
image: debian:9
<<: *runtime_image_debian_docker_definition
dependencies:
- build-debian-9
<<: *test_definition_cpp_examples
test-py-examples-debian-9:
only:
- master
image: debian:9
<<: *runtime_image_debian_docker_definition
dependencies:
- build-debian-9
<<: *test_definition_python_examples
build-debian-10:
image: debian:10
<<: *build_image_debian_docker_definition
<<: *build_definition_make
test-cpp-examples-debian-10:
image: debian:10
<<: *runtime_image_debian_docker_definition
dependencies:
- build-debian-10
<<: *test_definition_cpp_examples
test-py-examples-debian-10:
image: debian:10
<<: *runtime_image_debian_docker_definition
dependencies:
- build-debian-10
<<: *test_definition_python_examples
format-cpp:
image: debian:10
<<: *build_image_debian_docker_definition
stage: quality
dependencies:
- build-debian-10
script:
- mkdir -p build
- cd build
- cmake ..
- make format
- cd ..
- git diff > build/format_check_revisionlist.txt
- if [ `git diff | wc -l` -gt "0" ]; then false; fi
artifacts:
when: on_failure
paths:
- "build/format_check_revisionlist.txt"
allow_failure: true
build-clang:
variables:
CMAKE_FLAGS: "-DCMAKE_C_COMPILER=clang-7 -DCMAKE_CXX_COMPILER=clang++-7"
image: debian:10
<<: *build_image_debian_docker_definition
<<: *build_definition_make
test-cpp-examples-clang:
image: debian:10
<<: *runtime_image_debian_docker_definition
dependencies:
- build-clang
<<: *test_definition_cpp_examples
test-py-examples-clang:
image: debian:10
<<: *runtime_image_debian_docker_definition
dependencies:
- build-clang
<<: *test_definition_python_examples
build-intel:
variables:
CMAKE_FLAGS: "-DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc"
<<: *image_lrz_haswell_definition
<<: *build_definition_make
test-cpp-examples-intel:
<<: *image_lrz_haswell_definition
dependencies:
- build-intel
<<: *test_definition_cpp_examples
test-py-examples-intel:
<<: *image_lrz_haswell_definition
dependencies:
- build-intel
<<: *test_definition_python_examples