-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
97 lines (89 loc) · 2.62 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
image: "hirschsn/repa"
stages:
- check
- build
- test
check-style:
stage: check
script:
- find . -iname "*.[ch]pp" -exec clang-format --style=file -i {} \;
- git diff > style-patch.diff
- if [ -s style-patch.diff ]; then echo "Download the style patch as artifact and apply it."; false; fi
needs: []
artifacts:
paths:
- style-patch.diff
expire_in: 7 day
build-debug:
stage: build
script:
- mkdir build && cd build
- cmake .. -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy)" -DCMAKE_BUILD_TYPE=Debug -DREPA_WITH_COVERAGE=off -DMPIEXEC_PREFLAGS="--oversubscribe;--bind-to;none"
- make -j4
artifacts:
paths:
- build/CMakeCache.txt
- build/CTestTestfile.cmake
- build/tests/CTestTestfile.cmake
- build/Makefile
- build/repa/librepa.so
- build/tests/utest_*
- build/tests/itest_*
expire_in: 1 day
build-relwithdebinfo:
stage: build
script:
- mkdir build && cd build
- cmake .. -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy)" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREPA_WITH_COVERAGE=off -DMPIEXEC_PREFLAGS="--oversubscribe;--bind-to;none"
- make -j4
artifacts:
paths:
- build/CMakeCache.txt
- build/CTestTestfile.cmake
- build/tests/CTestTestfile.cmake
- build/Makefile
- build/repa/librepa.so
- build/tests/utest_*
- build/tests/itest_*
expire_in: 1 day
build-release:
stage: build
script:
- mkdir build && cd build
- cmake .. -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy)" -DCMAKE_BUILD_TYPE=Release -DREPA_WITH_COVERAGE=off -DMPIEXEC_PREFLAGS="--oversubscribe;--bind-to;none"
- make -j4
artifacts:
paths:
- build/CMakeCache.txt
- build/CTestTestfile.cmake
- build/tests/CTestTestfile.cmake
- build/Makefile
- build/repa/librepa.so
- build/tests/utest_*
- build/tests/itest_*
expire_in: 1 day
test-debug:
stage: test
script:
- cd build
- cmake .. -DTEST_MAX_NPROC=16
- make test
dependencies:
- build-debug
needs: ["build-debug"]
test-relwithdebinfo:
stage: test
script:
- cd build
- make test
dependencies:
- build-relwithdebinfo
needs: ["build-relwithdebinfo"]
test-release:
stage: test
script:
- cd build
- make test
dependencies:
- build-release
needs: ["build-release"]