.gitlab-ci.yml 30.6 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
###############################################################################
##                                                                           ##
##    Build templates                                                        ##
##                                                                           ##
###############################################################################

.build_template: &build_definition
   script:
      - export NUM_CORES=$(nproc --all)
      - export MAX_BUILD_CORES=$(( $(awk '( $1 == "MemTotal:" ) { print $2 }' /proc/meminfo) / ( 4 * 1024 * 1024  ) ))
      - "[[ $MAX_BUILD_CORES -lt $NUM_CORES ]] && export NUM_BUILD_CORES=$MAX_BUILD_CORES || export NUM_BUILD_CORES=$NUM_CORES"
      - export
      - $CXX --version
      - cmake --version
      - ccache --version
      - mpirun --version
      - export CCACHE_BASEDIR=$CI_PROJECT_DIR
      - mkdir $CI_PROJECT_DIR/build
      - cd $CI_PROJECT_DIR/build
      - if dpkg --compare-versions `ompi_info | head -2 | tail -1 | sed 's/[^0-9.]*\([0-9.]*\).*/\1/'` ge 1.10; then export MPIEXEC_PREFLAGS="--allow-run-as-root" ; fi
21
      - cmake .. -DWALBERLA_BUFFER_DEBUG=$WALBERLA_BUFFER_DEBUG -DWALBERLA_BUILD_TESTS=ON -DWALBERLA_BUILD_BENCHMARKS=ON -DWALBERLA_BUILD_TUTORIALS=ON -DWALBERLA_BUILD_WITH_MPI=$WALBERLA_BUILD_WITH_MPI -DWALBERLA_BUILD_WITH_CUDA=$WALBERLA_BUILD_WITH_CUDA -DWALBERLA_BUILD_WITH_PYTHON=$WALBERLA_BUILD_WITH_PYTHON -DWALBERLA_BUILD_WITH_OPENMP=$WALBERLA_BUILD_WITH_OPENMP -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DMPIEXEC_PREFLAGS=$MPIEXEC_PREFLAGS -DWALBERLA_DOUBLE_ACCURACY=$WALBERLA_DOUBLE_ACCURACY -DWARNING_ERROR=ON
22
23
24
25
26
27
      - cmake . -LAH
      - make -j $NUM_BUILD_CORES -l $NUM_CORES
      - ctest -LE $CTEST_EXCLUDE_LABELS -C $CMAKE_BUILD_TYPE --output-on-failure -j $NUM_CORES
   tags:
      - docker

Martin Bauer's avatar
Martin Bauer committed
28

29
30
31
32
33
34
35
36
37
.build_serial_template: &build_serial_definition
   <<: *build_definition
   variables:
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "OFF"
      WALBERLA_BUILD_WITH_OPENMP: "OFF"
      CMAKE_BUILD_TYPE: "Release"
      WALBERLA_BUFFER_DEBUG: "OFF"
      WALBERLA_DOUBLE_ACCURACY: "ON"
Martin Bauer's avatar
Martin Bauer committed
38
39


40
41
42
43
44
45
46
47
48
.build_mpionly_template: &build_mpionly_definition
   <<: *build_definition
   variables:
       CTEST_EXCLUDE_LABELS: "longrun"
       WALBERLA_BUILD_WITH_MPI: "ON"
       WALBERLA_BUILD_WITH_OPENMP: "OFF"
       CMAKE_BUILD_TYPE: "Release"
       WALBERLA_BUFFER_DEBUG: "OFF"
       WALBERLA_DOUBLE_ACCURACY: "ON"
Martin Bauer's avatar
Martin Bauer committed
49
50


51
52
53
54
55
56
57
58
59
60
61
.build_hybrid_template: &build_hybrid_definition
   <<: *build_definition
   variables:
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "ON"
      WALBERLA_BUILD_WITH_OPENMP: "ON"
      OMP_NUM_THREADS: "4"
      OMP_WAIT_POLICY: "PASSIVE"
      CMAKE_BUILD_TYPE: "Release"
      WALBERLA_BUFFER_DEBUG: "OFF"
      WALBERLA_DOUBLE_ACCURACY: "ON"
Martin Bauer's avatar
Martin Bauer committed
62

63
64
65
66
67
68
69
70
71
.build_serial_dbg_template: &build_serial_dbg_definition
   <<: *build_definition
   variables:
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "OFF"
      WALBERLA_BUILD_WITH_OPENMP: "OFF"
      CMAKE_BUILD_TYPE: "DebugOptimized"
      WALBERLA_BUFFER_DEBUG: "OFF"
      WALBERLA_DOUBLE_ACCURACY: "ON"
Martin Bauer's avatar
Martin Bauer committed
72
73


74
75
76
77
78
79
80
81
82
.build_mpionly_dbg_template: &build_mpionly_dbg_definition
   <<: *build_definition
   variables:
       CTEST_EXCLUDE_LABELS: "longrun"
       WALBERLA_BUILD_WITH_MPI: "ON"
       WALBERLA_BUILD_WITH_OPENMP: "OFF"
       CMAKE_BUILD_TYPE: "DebugOptimized"
       WALBERLA_BUFFER_DEBUG: "OFF"
       WALBERLA_DOUBLE_ACCURACY: "ON"
Martin Bauer's avatar
Martin Bauer committed
83
84


85
86
87
88
89
90
91
92
93
94
95
.build_hybrid_dbg_template: &build_hybrid_dbg_definition
   <<: *build_definition
   variables:
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "ON"
      WALBERLA_BUILD_WITH_OPENMP: "ON"
      OMP_NUM_THREADS: "4"
      OMP_WAIT_POLICY: "PASSIVE"
      CMAKE_BUILD_TYPE: "DebugOptimized"
      WALBERLA_BUFFER_DEBUG: "OFF"
      WALBERLA_DOUBLE_ACCURACY: "ON"
Martin Bauer's avatar
Martin Bauer committed
96

97
98
99
100
101
102
103
104
105
106
107
.build_hybrid_dbg_sp_template: &build_hybrid_dbg_sp_definition
   <<: *build_definition
   variables:
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "ON"
      WALBERLA_BUILD_WITH_OPENMP: "ON"
      OMP_NUM_THREADS: "4"
      OMP_WAIT_POLICY: "PASSIVE"
      CMAKE_BUILD_TYPE: "DebugOptimized"
      WALBERLA_BUFFER_DEBUG: "OFF"
      WALBERLA_DOUBLE_ACCURACY: "OFF"
Martin Bauer's avatar
Martin Bauer committed
108
109


110
111
###############################################################################
##                                                                           ##
Martin Bauer's avatar
Martin Bauer committed
112
##    Linux builds                                                           ##
113
114
115
##                                                                           ##
###############################################################################

Martin Bauer's avatar
Martin Bauer committed
116
117
118


intel_15_serial:
119
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
120
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:15
121
   tags:
Martin Bauer's avatar
Martin Bauer committed
122
      - docker
Martin Bauer's avatar
Martin Bauer committed
123
      - intel
Christian Godenschwager's avatar
Christian Godenschwager committed
124
125
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
126
127
128
129

intel_15_mpionly:
   <<: *build_mpionly_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:15
130
   tags:
Martin Bauer's avatar
Martin Bauer committed
131
      - docker
Martin Bauer's avatar
Martin Bauer committed
132
      - intel
Christian Godenschwager's avatar
Christian Godenschwager committed
133
134
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
135
136
137
138

intel_15_hybrid:
   <<: *build_hybrid_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:15
139
   tags:
Martin Bauer's avatar
Martin Bauer committed
140
      - docker
Martin Bauer's avatar
Martin Bauer committed
141
      - intel
Christian Godenschwager's avatar
Christian Godenschwager committed
142
143
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
144
145
146
147

intel_15_serial_dbg:
   <<: *build_serial_dbg_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:15
148
   tags:
Martin Bauer's avatar
Martin Bauer committed
149
      - docker
Martin Bauer's avatar
Martin Bauer committed
150
      - intel
Christian Godenschwager's avatar
Christian Godenschwager committed
151
152
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
153
154
155
156

intel_15_mpionly_dbg:
   <<: *build_mpionly_dbg_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:15
157
   tags:
Martin Bauer's avatar
Martin Bauer committed
158
      - docker
Martin Bauer's avatar
Martin Bauer committed
159
      - intel
Christian Godenschwager's avatar
Christian Godenschwager committed
160
161
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
162
163

intel_15_hybrid_dbg:
164
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
165
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:15
166
   tags:
Martin Bauer's avatar
Martin Bauer committed
167
      - docker
Martin Bauer's avatar
Martin Bauer committed
168
      - intel
169

Martin Bauer's avatar
Martin Bauer committed
170
171
172
173
174
intel_15_hybrid_dbg_sp:
   <<: *build_hybrid_dbg_sp_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:15
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
175
      - intel
Christian Godenschwager's avatar
Christian Godenschwager committed
176
177
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
178
179
180
181

intel_16_serial:
   <<: *build_serial_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:16
182
   tags:
Martin Bauer's avatar
Martin Bauer committed
183
      - docker
Martin Bauer's avatar
Martin Bauer committed
184
185
      - intel
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
186
187
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
188
189
190
191

intel_16_mpionly:
   <<: *build_mpionly_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:16
192
   tags:
Martin Bauer's avatar
Martin Bauer committed
193
      - docker
Martin Bauer's avatar
Martin Bauer committed
194
195
      - intel
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
196
197
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
198
199
200
201

intel_16_hybrid:
   <<: *build_hybrid_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:16
202
   tags:
Martin Bauer's avatar
Martin Bauer committed
203
      - docker
Martin Bauer's avatar
Martin Bauer committed
204
205
      - intel
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
206
207
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
208
209
210
211

intel_16_serial_dbg:
   <<: *build_serial_dbg_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:16
212
   tags:
Martin Bauer's avatar
Martin Bauer committed
213
      - docker
Martin Bauer's avatar
Martin Bauer committed
214
215
      - intel
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
216
217
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
218
219
220
221

intel_16_mpionly_dbg:
   <<: *build_mpionly_dbg_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:16
222
   tags:
Martin Bauer's avatar
Martin Bauer committed
223
      - docker
Martin Bauer's avatar
Martin Bauer committed
224
225
      - intel
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
226
227
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
228
229

intel_16_hybrid_dbg:
230
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
231
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:16
232
   tags:
Martin Bauer's avatar
Martin Bauer committed
233
      - docker
Martin Bauer's avatar
Martin Bauer committed
234
235
      - intel
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
236
237
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
238
239
240
241

intel_16_hybrid_dbg_sp:
   <<: *build_hybrid_dbg_sp_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:16
242
   tags:
Martin Bauer's avatar
Martin Bauer committed
243
      - docker
Martin Bauer's avatar
Martin Bauer committed
244
245
      - intel
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
246
247
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
248
249
250
251

intel_17_serial:
   <<: *build_serial_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:17
252
   tags:
Martin Bauer's avatar
Martin Bauer committed
253
      - docker
Martin Bauer's avatar
Martin Bauer committed
254
      - intel
Christian Godenschwager's avatar
Christian Godenschwager committed
255
256
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
257
258
259
260

intel_17_mpionly:
   <<: *build_mpionly_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:17
261
   tags:
Martin Bauer's avatar
Martin Bauer committed
262
      - docker
Martin Bauer's avatar
Martin Bauer committed
263
      - intel
Christian Godenschwager's avatar
Christian Godenschwager committed
264
265
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
266
267

intel_17_hybrid:
268
   <<: *build_hybrid_definition
Martin Bauer's avatar
Martin Bauer committed
269
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:17
270
   tags:
Martin Bauer's avatar
Martin Bauer committed
271
      - docker
Martin Bauer's avatar
Martin Bauer committed
272
      - intel
Martin Bauer's avatar
Martin Bauer committed
273
274

intel_17_serial_dbg:
275
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
276
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:17
277
   tags:
Martin Bauer's avatar
Martin Bauer committed
278
      - docker
Martin Bauer's avatar
Martin Bauer committed
279
      - intel
Martin Bauer's avatar
Martin Bauer committed
280
281

intel_17_mpionly_dbg:
282
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
283
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:17
284
   tags:
Martin Bauer's avatar
Martin Bauer committed
285
      - docker
Martin Bauer's avatar
Martin Bauer committed
286
      - intel
Martin Bauer's avatar
Martin Bauer committed
287
288

intel_17_hybrid_dbg:
289
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
290
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:17
291
   tags:
Martin Bauer's avatar
Martin Bauer committed
292
      - docker
Martin Bauer's avatar
Martin Bauer committed
293
      - intel
Martin Bauer's avatar
Martin Bauer committed
294
295

intel_17_hybrid_dbg_sp:
296
   <<: *build_hybrid_dbg_sp_definition
Martin Bauer's avatar
Martin Bauer committed
297
   image: i10git.cs.fau.de:5005/walberla/buildenvs/intel:17
298
   tags:
Martin Bauer's avatar
Martin Bauer committed
299
      - docker
Martin Bauer's avatar
Martin Bauer committed
300
      - intel
301

Martin Bauer's avatar
Martin Bauer committed
302
gcc_4.7_serial:
303
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
304
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.7
305
306
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
307
308
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
309
310

gcc_4.7_mpionly:
311
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
312
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.7
313
314
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
315
316
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
317
318

gcc_4.7_hybrid:
319
   <<: *build_hybrid_definition
Martin Bauer's avatar
Martin Bauer committed
320
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.7
321
322
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
323
324
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
325
326

gcc_4.7_serial_dbg:
327
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
328
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.7
329
330
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
331
332
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
333
334

gcc_4.7_mpionly_dbg:
335
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
336
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.7
337
338
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
339
340
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
341
342

gcc_4.7_hybrid_dbg:
343
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
344
345
346
347
348
349
350
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.7
   tags:
      - docker

gcc_4.7_hybrid_dbg_sp:
   <<: *build_hybrid_dbg_sp_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.7
351
352
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
353
354
   only:
      - triggers
355

Martin Bauer's avatar
Martin Bauer committed
356
gcc_4.8_serial:
357
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
358
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.8
359
360
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
361
362
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
363
364

gcc_4.8_mpionly:
365
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
366
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.8
367
368
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
369
370
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
371
372

gcc_4.8_hybrid:
373
   <<: *build_hybrid_definition
Martin Bauer's avatar
Martin Bauer committed
374
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.8
375
376
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
377
378
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
379
380

gcc_4.8_serial_dbg:
381
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
382
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.8
383
384
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
385
386
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
387
388

gcc_4.8_mpionly_dbg:
389
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
390
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.8
391
392
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
393
394
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
395
396

gcc_4.8_hybrid_dbg:
397
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
398
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.8
399
400
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
401
402
   only:
      - triggers
403

Martin Bauer's avatar
Martin Bauer committed
404
405
406
gcc_4.8_hybrid_dbg_sp:
   <<: *build_hybrid_dbg_sp_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.8
407
408
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
409
410
   only:
      - triggers
411

Martin Bauer's avatar
Martin Bauer committed
412
gcc_4.9_serial:
413
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
414
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.9
415
416
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
417
418
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
419
420

gcc_4.9_mpionly:
421
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
422
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.9
423
424
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
425
426
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
427
428

gcc_4.9_hybrid:
429
   <<: *build_hybrid_definition
Martin Bauer's avatar
Martin Bauer committed
430
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.9
431
432
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
433
434
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
435
436

gcc_4.9_serial_dbg:
437
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
438
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.9
439
440
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
441
442
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
443
444

gcc_4.9_mpionly_dbg:
445
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
446
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.9
447
448
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
449
450
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
451
452

gcc_4.9_hybrid_dbg:
453
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
454
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.9
455
456
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
457
458
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
459
460
461
462

gcc_4.9_hybrid_dbg_sp:
   <<: *build_hybrid_dbg_sp_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:4.9
463
464
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
465
466
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
467
468

gcc_5_serial:
469
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
470
471
472
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
473
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
474
475
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
476
477

gcc_5_mpionly:
478
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
479
480
481
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
482
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
483
484
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
485
486

gcc_5_hybrid:
487
   <<: *build_hybrid_definition
Martin Bauer's avatar
Martin Bauer committed
488
489
490
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
491
      - cuda
Martin Bauer's avatar
Martin Bauer committed
492
493

gcc_5_serial_dbg:
494
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
495
496
497
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
498
      - cuda
Martin Bauer's avatar
Martin Bauer committed
499
500

gcc_5_mpionly_dbg:
501
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
502
503
504
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
505
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
506
507
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
508
509

gcc_5_hybrid_dbg:
510
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
511
512
513
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
514
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
515
516
   only:
      - triggers
517

Martin Bauer's avatar
Martin Bauer committed
518
519
520
521
522
gcc_5_hybrid_dbg_sp:
   <<: *build_hybrid_dbg_sp_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
523
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
524
525
   only:
      - triggers
526

Martin Bauer's avatar
Martin Bauer committed
527
gcc_6_serial:
528
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
529
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:6
530
531
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
532
533
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
534
535

gcc_6_mpionly:
536
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
537
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:6
538
539
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
540
541
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
542
543

gcc_6_hybrid:
544
   <<: *build_hybrid_definition
Martin Bauer's avatar
Martin Bauer committed
545
546
547
548
549
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:6
   tags:
      - docker

gcc_6_serial_dbg:
550
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
551
552
553
554
555
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:6
   tags:
      - docker

gcc_6_mpionly_dbg:
556
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
557
558
559
560
561
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:6
   tags:
      - docker

gcc_6_hybrid_dbg:
562
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
563
564
565
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:6
   tags:
      - docker
566

Martin Bauer's avatar
Martin Bauer committed
567
568
569
570
571
gcc_6_hybrid_dbg_sp:
   <<: *build_hybrid_dbg_sp_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/gcc:6
   tags:
      - docker
572

Martin Bauer's avatar
Martin Bauer committed
573
clang_3.4_serial:
574
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
575
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.4
576
577
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
578
579
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
580
581

clang_3.4_mpionly:
582
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
583
584
585
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.4
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
586
587
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
588
589

clang_3.4_serial_dbg:
590
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
591
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.4
592
593
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
594
595
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
596
597

clang_3.4_mpionly_dbg:
598
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
599
600
601
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.4
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
602
603
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
604
605

clang_3.5_serial:
606
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
607
608
609
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
610
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
611
612
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
613
614

clang_3.5_mpionly:
615
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
616
617
618
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
619
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
620
621
   only:
      - triggers
622

Martin Bauer's avatar
Martin Bauer committed
623
clang_3.5_serial_dbg:
624
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
625
626
627
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
628
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
629
630
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
631
632

clang_3.5_mpionly_dbg:
633
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
634
635
636
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.5
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
637
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
638
639
   only:
      - triggers
640

Martin Bauer's avatar
Martin Bauer committed
641
clang_3.6_serial:
642
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
643
644
645
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.6
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
646
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
647
648
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
649
650

clang_3.6_mpionly:
651
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
652
653
654
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.6
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
655
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
656
657
   only:
      - triggers
658

Martin Bauer's avatar
Martin Bauer committed
659
clang_3.6_serial_dbg:
660
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
661
662
663
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.6
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
664
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
665
666
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
667

668
669
clang_3.6_mpionly_dbg:
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
670
671
672
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.6
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
673
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
674
675
   only:
      - triggers
676

Martin Bauer's avatar
Martin Bauer committed
677
clang_3.7_serial:
678
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
679
680
681
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.7
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
682
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
683
684
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
685
686

clang_3.7_mpionly:
687
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
688
689
690
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.7
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
691
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
692
693
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
694
695

clang_3.7_serial_dbg:
696
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
697
698
699
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.7
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
700
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
701
702
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
703
704

clang_3.7_mpionly_dbg:
705
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
706
707
708
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.7
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
709
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
710
711
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
712
713

clang_3.8_serial:
714
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
715
716
717
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.8
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
718
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
719
720
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
721
722

clang_3.8_mpionly:
723
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
724
725
726
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.8
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
727
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
728
729
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
730
731

clang_3.8_hybrid:
732
   <<: *build_hybrid_definition
Martin Bauer's avatar
Martin Bauer committed
733
734
735
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.8
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
736
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
737
738
   only:
      - triggers
739

Martin Bauer's avatar
Martin Bauer committed
740
clang_3.8_serial_dbg:
741
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
742
743
744
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.8
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
745
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
746
747
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
748
749

clang_3.8_mpionly_dbg:
750
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
751
752
753
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.8
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
754
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
755
756
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
757
758

clang_3.8_hybrid_dbg:
759
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
760
761
762
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.8
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
763
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
764
765
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
766
767
768
769
770
771

clang_3.8_hybrid_dbg_sp:
   <<: *build_hybrid_dbg_sp_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.8
   tags:
      - docker
Martin Bauer's avatar
Martin Bauer committed
772
      - cuda
Christian Godenschwager's avatar
Christian Godenschwager committed
773
774
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
775
776

clang_3.9_serial:
777
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
778
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.9
779
780
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
781
782
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
783
784

clang_3.9_mpionly:
785
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
786
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.9
787
788
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
789
790
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
791
792

clang_3.9_hybrid:
793
   <<: *build_hybrid_definition
Martin Bauer's avatar
Martin Bauer committed
794
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.9
795
796
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
797
798
   only:
      - triggers
799

Martin Bauer's avatar
Martin Bauer committed
800
clang_3.9_serial_dbg:
801
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
802
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.9
803
804
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
805
806
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
807
808

clang_3.9_mpionly_dbg:
809
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
810
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.9
811
812
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
813
814
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
815
816

clang_3.9_hybrid_dbg:
817
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
818
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.9
819
820
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
821
822
   only:
      - triggers
Sebastian Eibl's avatar
Sebastian Eibl committed
823

Martin Bauer's avatar
Martin Bauer committed
824
825
826
clang_3.9_hybrid_dbg_sp:
   <<: *build_hybrid_dbg_sp_definition
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:3.9
827
828
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
829
830
   only:
      - triggers
Sebastian Eibl's avatar
Sebastian Eibl committed
831

Martin Bauer's avatar
Martin Bauer committed
832
clang_4.0_serial:
Sebastian Eibl's avatar
Sebastian Eibl committed
833
   <<: *build_serial_definition
Martin Bauer's avatar
Martin Bauer committed
834
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:4.0
835
836
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
837
838
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
839
840

clang_4.0_mpionly:
Sebastian Eibl's avatar
Sebastian Eibl committed
841
   <<: *build_mpionly_definition
Martin Bauer's avatar
Martin Bauer committed
842
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:4.0
843
844
   tags:
      - docker
Christian Godenschwager's avatar
Christian Godenschwager committed
845
846
   only:
      - triggers
Martin Bauer's avatar
Martin Bauer committed
847
848

clang_4.0_hybrid:
Sebastian Eibl's avatar
Sebastian Eibl committed
849
   <<: *build_hybrid_definition
Martin Bauer's avatar
Martin Bauer committed
850
851
852
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:4.0
   tags:
      - docker
Sebastian Eibl's avatar
Sebastian Eibl committed
853

Martin Bauer's avatar
Martin Bauer committed
854
clang_4.0_serial_dbg:
Sebastian Eibl's avatar
Sebastian Eibl committed
855
   <<: *build_serial_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
856
857
858
859
860
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:4.0
   tags:
      - docker

clang_4.0_mpionly_dbg:
Sebastian Eibl's avatar
Sebastian Eibl committed
861
   <<: *build_mpionly_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
862
863
864
865
866
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:4.0
   tags:
      - docker

clang_4.0_hybrid_dbg:
Sebastian Eibl's avatar
Sebastian Eibl committed
867
   <<: *build_hybrid_dbg_definition
Martin Bauer's avatar
Martin Bauer committed
868
869
870
871
872
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:4.0
   tags:
      - docker

clang_4.0_hybrid_dbg_sp:
873
   <<: *build_hybrid_dbg_sp_definition
Martin Bauer's avatar
Martin Bauer committed
874
875
876
   image: i10git.cs.fau.de:5005/walberla/buildenvs/clang:4.0
   tags:
      - docker
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923



###############################################################################
##                                                                           ##
##    Documentation                                                         ##
##                                                                           ##
###############################################################################

doc:
   image: walberla/buildenv-ubuntu-basic:16.04
   script:
      - cmake --version
      - doxygen --version
      - mkdir $CI_PROJECT_DIR/build
      - cd $CI_PROJECT_DIR/build
      - cmake ..
      - cmake . -LAH
      - make doc
   tags:
      - docker
   artifacts:
      paths:
        - build/doc
      expire_in: 1 weeks



###############################################################################
##                                                                           ##
##    Code analysis                                                          ##
##                                                                           ##
###############################################################################

cppcheck:
   image: walberla/cppcheck
   script:
      - cppcheck --version
      - cppcheck . --max-configs=10 --enable=warning --enable=style --enable=performance --enable=portability -i src/gui/extern -i src/geometry/structured/extern -i sqlite3.c -i StackWalker.cpp -I src/ -I tests/ -I apps/ -D WALBERLA_BUILD_WITH_MPI -D WALBERLA_BUILD_WITH_METIS -D WALBERLA_BUILD_WITH_BOOST_THREAD -D WALBERLA_BUILD_WITH_PYTHON --xml 2> report.xml
      - cppcheck-htmlreport --file=report.xml --report-dir=html_report --source-dir=.
   artifacts:
      untracked: true
   only:
      - triggers
   tags:
      - docker

Martin Bauer's avatar
Martin Bauer committed
924

925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
coverage:
   image: walberla/coverage
   script:
      - export
      - $CXX --version
      - cmake --version
      - gcovr --version
      - mkdir build
      - cd build
      - if dpkg --compare-versions `ompi_info | head -2 | tail -1 | sed 's/[^0-9.]*\([0-9.]*\).*/\1/'` ge 1.10; then export MPIEXEC_PREFLAGS="--allow-run-as-root" ; fi
      - cmake .. -DWALBERLA_BUILD_TESTS=ON -DWALBERLA_BUILD_BENCHMARKS=ON -DWALBERLA_BUILD_TUTORIALS=ON -DWALBERLA_BUILD_WITH_MPI=ON -DWALBERLA_BUILD_WITH_OPENMP=OFF -DCMAKE_BUILD_TYPE=Debug -DMPIEXEC_PREFLAGS=$MPIEXEC_PREFLAGS
      - cmake . -LAH
      - make -j 8
      - ctest -LE longrun --output-on-failure -j 8_Hybrid
      - cd ..
      - mkdir coverage
      - cd coverage
      - pwd
      - gcovr -r $CI_PROJECT_DIR -f ".*\\/src\\/.*" -k
      - gcovr -r $CI_PROJECT_DIR -f ".*\\/src\\/.*" --html --html-details -o coverage.html -g
   artifacts:
      paths:
         - coverage/
   only:
      - triggers
   tags:
      - docker
   variables:
      CXXFLAGS: "-fprofile-arcs -ftest-coverage -fPIC -O0"
      LDFLAGS: "-fprofile-arcs -ftest-coverage -fPIC -O0"

Martin Bauer's avatar
Martin Bauer committed
956
957


958
959
###############################################################################
##                                                                           ##
Christian Godenschwager's avatar
Christian Godenschwager committed
960
##    Windows Builds                                                         ##
961
##                                                                           ##
Martin Bauer's avatar
Martin Bauer committed
962
###############################################################################
Christian Godenschwager's avatar
Christian Godenschwager committed
963
964
      
     
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
.win_build_template: &win_build_definition
   tags:
      - win
   script:
      - export PreferredToolArchitecture=x64
      - export OMP_NUM_THREADS=4
      - export OMP_WAIT_POLICY="PASSIVE"
      - export MSMPI_DISABLE_SHM=1
      - export
      - cmake --version
      - mkdir build
      - cd build
      - cmake -LAH -DWALBERLA_BUILD_TESTS=ON -DWALBERLA_BUILD_BENCHMARKS=ON -DWALBERLA_BUILD_TUTORIALS=ON -DWALBERLA_BUILD_WITH_MPI=$WALBERLA_BUILD_WITH_MPI -DWALBERLA_BUILD_WITH_OPENMP=$WALBERLA_BUILD_WITH_OPENMP -DWALBERLA_DOUBLE_ACCURACY=$WALBERLA_DOUBLE_ACCURACY -DWARNING_ERROR=ON -G "$CMAKE_GENERATOR" ..
      - MSBuild.exe walberla.sln /property:Configuration=$BUILD_CONFIGURATION /verbosity:minimal /maxcpucount:4
      - ctest -LE $CTEST_EXCLUDE_LABELS -C $BUILD_CONFIGURATION --output-on-failure -j 4
Christian Godenschwager's avatar
Christian Godenschwager committed
980
981
      
      
982
983
984
985
986
987
988
989
990
msvc-12_Hybrid_Dbg:
   <<: *win_build_definition
   variables:
      CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
      BUILD_CONFIGURATION: "DebugOptimized"
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "ON"
      WALBERLA_BUILD_WITH_OPENMP: "ON"
      WALBERLA_DOUBLE_ACCURACY: "ON"
Christian Godenschwager's avatar
Christian Godenschwager committed
991
      
992
993
994
995
996
997
998
999
1000
1001
1002
msvc-12_Hybrid_SP_Dbg:
   <<: *win_build_definition
   variables:
      CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
      BUILD_CONFIGURATION: "DebugOptimized"
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "ON"
      WALBERLA_BUILD_WITH_OPENMP: "ON"
      WALBERLA_DOUBLE_ACCURACY: "OFF"
   only:
      - triggers
Christian Godenschwager's avatar
Christian Godenschwager committed
1003
      
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
msvc-12_Hybrid:
   <<: *win_build_definition
   variables:
      CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
      BUILD_CONFIGURATION: "Release"
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "ON"
      WALBERLA_BUILD_WITH_OPENMP: "ON"
      WALBERLA_DOUBLE_ACCURACY: "ON"
   only:
Christian Godenschwager's avatar
Christian Godenschwager committed
1014
1015
      - triggers   
      
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
msvc-12_Serial_Dbg:
   <<: *win_build_definition
   variables:
      CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
      BUILD_CONFIGURATION: "DebugOptimized"
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "OFF"
      WALBERLA_BUILD_WITH_OPENMP: "OFF"
      WALBERLA_DOUBLE_ACCURACY: "ON"
   only:
      - triggers
Christian Godenschwager's avatar
Christian Godenschwager committed
1027
      
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
msvc-12_Serial:
   <<: *win_build_definition
   variables:
      CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
      BUILD_CONFIGURATION: "Release"
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "OFF"
      WALBERLA_BUILD_WITH_OPENMP: "OFF"
      WALBERLA_DOUBLE_ACCURACY: "ON"
   only:
      - triggers
Christian Godenschwager's avatar
Christian Godenschwager committed
1039
      
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
msvc-12_MpiOnly_Dbg:
   <<: *win_build_definition
   variables:
      CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
      BUILD_CONFIGURATION: "DebugOptimized"
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "ON"
      WALBERLA_BUILD_WITH_OPENMP: "OFF"
      WALBERLA_DOUBLE_ACCURACY: "ON"
   only:
      - triggers
Christian Godenschwager's avatar
Christian Godenschwager committed
1051
      
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
msvc-12_MpiOnly:
   <<: *win_build_definition
   variables:
      CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
      BUILD_CONFIGURATION: "Release"
      CTEST_EXCLUDE_LABELS: "longrun"
      WALBERLA_BUILD_WITH_MPI: "ON"
      WALBERLA_BUILD_WITH_OPENMP: "OFF"
      WALBERLA_DOUBLE_ACCURACY: "ON"
   only:
      - triggers
Christian Godenschwager's avatar
Christian Godenschwager committed
1063
      
1064
1065
1066