-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
369 lines (353 loc) · 9.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
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
variables:
GIT_SUBMODULE_STRATEGY: none
stages:
- analysis
- build
- test
- coverage
- deploy
before_script:
- hostname
- whoami
# - pwd
analysis-documentation:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_doc
stage: analysis
allow_failure: true
artifacts:
name: analysis-documentation
when: always
paths:
- doc/build/html
# - doc/build/latex
- doc/build/doxygen
tags:
- x86_64
- linux
- docker
script:
- export THREADS="1"
- ./ci/analysis-documentation.sh
build-linux-gcc-c:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_gcc:v9.3.0
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
tags:
- linux
- docker
artifacts:
name: build-linux-gcc-c
paths:
- build_linux_gcc_c.tar.gz
script:
- export CC="gcc"
- export CXX="g++"
- export CFLAGS="-Wall -funroll-loops"
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.lip6.fr/sog/lsl-lib lib/lsl && cd lib/lsl && git checkout c77abac1 && cd ../..
- export CMAKE_OPT="-DFMDT_SPU_RUNTIME=OFF -DFMDT_LSL_LINK=ON -DFMDT_USE_VCIO=OFF"
- export NAME="build_linux_gcc_c"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- tar -zcvf build_linux_gcc_c.tar.gz build_linux_gcc_c
build-linux-gcc:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_gcc:v9.3.0
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
tags:
- x86_64
- linux
- docker
artifacts:
name: build-linux-gcc
paths:
- build_linux_gcc.tar.gz
script:
- export CC="gcc"
- export CXX="g++"
- export CFLAGS="-Wall -funroll-loops -msse4.2"
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.lip6.fr/sog/lsl-lib lib/lsl && cd lib/lsl && git checkout c77abac1 && cd ../..
- export CMAKE_OPT="-DFMDT_SPU_RUNTIME=ON -DFMDT_LSL_LINK=ON -DFMDT_LSL_NEW_INTERFACE=ON -DFMDT_USE_VCIO=OFF"
- export NAME="build_linux_gcc"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- tar -zcvf build_linux_gcc.tar.gz build_linux_gcc
build-linux-gcc-coverage-test-regression:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_coverage
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
tags:
- x86_64
- linux
- docker
artifacts:
name: build
paths:
- build.tar.gz
- fmdt_outputs.tar.gz
script:
- export CC="gcc"
- export CXX="g++"
- export CFLAGS="-Wall -funroll-loops -msse4.2 --coverage"
- export LFLAGS="--coverage"
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.lip6.fr/sog/lsl-lib lib/lsl && cd lib/lsl && git checkout c77abac1 && cd ../..
- export CMAKE_OPT="-DFMDT_SPU_RUNTIME=ON -DFMDT_OPENCV_LINK=ON -DFMDT_LSL_NEW_INTERFACE=ON -DFMDT_LSL_LINK=ON -DFMDT_USE_VCIO=OFF"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- LSLM=ON ./ci/test-regression.sh
- rm -rf build/bin
- rm -rf build/lib
- tar -zcvf build.tar.gz build
- tar -zcvf fmdt_outputs.tar.gz scripts/regression/output*
build-linux-clang:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_clang:v10.0.0
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
tags:
- x86_64
- linux
- docker
artifacts:
name: build-linux-clang
paths:
- build_linux_clang.tar.gz
script:
- export CC="clang"
- export CXX="clang++"
- export CFLAGS="-Wall -funroll-loops"
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.lip6.fr/sog/lsl-lib lib/lsl && cd lib/lsl && git checkout c77abac1 && cd ../..
- export CMAKE_OPT="-DFMDT_SPU_RUNTIME=ON -DFMDT_LSL_LINK=ON -DFMDT_USE_VCIO=OFF"
- export NAME="build_linux_clang"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- tar -zcvf build_linux_clang.tar.gz build_linux_clang
build-linux-clang-debug:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_clang:v10.0.0
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
tags:
- x86_64
- linux
- docker
artifacts:
name: build-linux-clang-debug
paths:
- build_linux_clang_debug.tar.gz
script:
- export CC="clang"
- export CXX="clang++"
- export CFLAGS="-Wall -funroll-loops"
- export CMAKE_OPT="-DFMDT_SPU_RUNTIME=ON -DFMDT_DEBUG=ON -DFMDT_LSL_LINK=OFF -DFMDT_USE_VCIO=OFF"
- export NAME="build_linux_clang_debug"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- tar -zcvf build_linux_clang_debug.tar.gz build_linux_clang_debug
build-linux-clang-c:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_clang:v10.0.0
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
tags:
- x86_64
- linux
- docker
artifacts:
name: build-linux-clang-c
paths:
- build_linux_clang_c.tar.gz
script:
- export CC="clang"
- export CXX="clang++"
- export CFLAGS="-Wall -funroll-loops"
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.lip6.fr/sog/lsl-lib lib/lsl && cd lib/lsl && git checkout c77abac1 && cd ../..
- export CMAKE_OPT="-DFMDT_SPU_RUNTIME=OFF -DFMDT_LSL_LINK=ON -DFMDT_LSL_NEW_INTERFACE=ON -DFMDT_USE_VCIO=OFF"
- export NAME="build_linux_clang_c"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- tar -zcvf build_linux_clang_c.tar.gz build_linux_clang_c
build-linux-icpc:
image: intel/oneapi-hpckit:2022.2-devel-ubuntu20.04
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
tags:
- x86_64
- linux
- docker
artifacts:
name: build-linux-icpc
paths:
- build_linux_icpc.tar.gz
script:
- export CC="icc"
- export CXX="icpc"
- export CFLAGS="-Wall -funroll-loops -march=native -std=c++11"
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.lip6.fr/sog/lsl-lib lib/lsl && cd lib/lsl && git checkout c77abac1 && cd ../..
- export CMAKE_OPT="-DFMDT_SPU_RUNTIME=ON -DFMDT_LSL_LINK=ON -DFMDT_USE_VCIO=OFF"
- export NAME="build_linux_icpc"
- source ./ci/tools/threads.sh
- ./ci/build-linux-macos.sh
- tar -zcvf build_linux_icpc.tar.gz build_linux_icpc
test-regression-c:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_coverage
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
needs:
- job: build-linux-gcc-c
artifacts: true
tags:
- x86_64
- sse4.2
- linux
- docker
artifacts:
name: build
when: always
paths:
- fmdt_outputs.tar.gz
script:
- tar -xvvf build_linux_gcc_c.tar.gz
- mkdir build
- mkdir build/bin
- mv build_linux_gcc_c/* build/bin
- ./ci/test-regression.sh
- tar -zcvf fmdt_outputs.tar.gz scripts/regression/output*
# test-regression:
# image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_coverage
# stage: test
# variables:
# GIT_SUBMODULE_STRATEGY: recursive
# except:
# - schedules
# needs:
# - job: build-linux-gcc-coverage
# artifacts: true
# tags:
# - x86_64
# - sse4.2
# - linux
# - docker
# artifacts:
# name: build
# when: always
# paths:
# - build.tar.gz
# - fmdt_outputs.tar.gz
# script:
# - tar -xvvf build.tar.gz
# - ./ci/test-regression.sh
# - rm -rf build/bin
# - rm -rf build/lib
# - tar -zcvf build.tar.gz build
# - tar -zcvf fmdt_outputs.tar.gz scripts/regression/output*
test-memory-c:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_valgrind
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
needs:
- job: build-linux-gcc-c
artifacts: true
- job: build-linux-clang-c
artifacts: true
tags:
- x86_64
- sse4.2
- linux
- docker
script:
- tar -xvvf build_linux_gcc_c.tar.gz
- mkdir build_gcc
- mkdir build_gcc/bin
- mv build_linux_gcc_c/* build_gcc/bin
- tar -xvvf build_linux_clang_c.tar.gz
- mkdir build_clang
- mkdir build_clang/bin
- mv build_linux_clang_c/* build_clang/bin
- ./ci/test-memory.sh build_gcc build_clang
test-memory:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_valgrind
stage: test
variables:
GIT_SUBMODULE_STRATEGY: recursive
except:
- schedules
needs:
- job: build-linux-gcc
artifacts: true
- job: build-linux-clang
artifacts: true
tags:
- x86_64
- sse4.2
- linux
- docker
script:
- tar -xvvf build_linux_gcc.tar.gz
- mkdir build_gcc
- mkdir build_gcc/bin
- mv build_linux_gcc/* build_gcc/bin
- tar -xvvf build_linux_clang.tar.gz
- mkdir build_clang
- mkdir build_clang/bin
- mv build_linux_clang/* build_clang/bin
- ./ci/test-memory.sh build_gcc build_clang
coverage-linux:
image: registry.gitlab.com/aff3ct/aff3ct/x86_64_ubuntu_coverage
stage: coverage
except:
- schedules
needs:
- job: build-linux-gcc-coverage-test-regression
artifacts: true
tags:
- x86_64
- linux
- docker
coverage: '/.*lines\.*: (\d+.\d+\%)/'
artifacts:
name: code-coverage-report
when: always
paths:
- code_coverage_report/
script:
- tar -xvvf build.tar.gz
- ./ci/coverage-linux.sh
pages:
stage: deploy
except:
- schedules
tags:
- linux
dependencies:
- coverage-linux
allow_failure: true
script:
- mv code_coverage_report/ public/
artifacts:
paths:
- public
expire_in: 30 days
only:
- develop