-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
50 lines (44 loc) · 1.13 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
stages:
- checks
- unit-tests
# let's make sure the source is formatted
clang-format:
stage: checks
script:
- for bob in $(find src -type f) ; do echo ${bob} && diff ${bob} <(clang-format ${bob}) || exit ; done
# only:
# - merge-requests
# run the unit tests for asgard (gcc and clang)
catch2-gcc-tests:
stage: unit-tests
script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=g++ ..
- make -j 8
- ctest -j 8
# only:
# - merge-requests
# run the unit tests for asgard (clang)
catch2-clang-tests:
stage: unit-tests
script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=clang++ ..
- make -j 8
- ctest -j 8
# run the unit tests for asgard (clang)
valgrind-check:
stage: unit-tests
script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=g++ ..
- make -j 8
- valgrind --error-exitcode=1 ./asgard -p continuity_1 -n 2
- valgrind --error-exitcode=1 ./asgard -p continuity_2 -n 2
- valgrind --error-exitcode=1 ./asgard -p continuity_3 -n 2
- valgrind --error-exitcode=1 ./asgard -p continuity_6 -n 2
# only:
# - merge-requests