-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
49 lines (45 loc) · 1008 Bytes
/
.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
image: "dbisilm/pfabric:alpine"
stages:
- build
- test
build:
stage: build
tags:
- grouprunner
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST_CASES=ON ..
- make -j 3
# clean up unnecessary files and strip binaries
- rm -rf _deps generated
- strip test/*Test
artifacts:
paths:
- build/
expire_in: 30 minutes
test:
stage: test
tags:
- grouprunner
script:
- cd build
- ctest -V
dependencies:
- build
coverage:
stage: build
only:
- master
tags:
- grouprunner
script:
- echo pfpass | sudo -S apk add libxml2-dev libxslt-dev python3-dev py-pip
- pip install gcovr --user
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-g -O0 -fprofile-arcs -ftest-coverage" -DBUILD_TEST_CASES=ON ..
- make -j 3
- ctest -V
- ~/.local/bin/gcovr -r .. --exclude _deps --exclude '(.+/)?catch\.hpp$'
coverage: '/^TOTAL.*\s+(\d+\%)$/'