-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
50 lines (45 loc) · 995 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/pmdk:latest"
stages:
- build
- test
build:
stage: build
tags:
- grouprunner
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j 3
# clean up unnecessary files and strip binaries
- rm -rf _deps *tree generated
- strip bench/point bench/scan bench/tree_* test/*Test
artifacts:
paths:
- build/
expire_in: 30 minutes
test:
stage: test
tags:
- grouprunner
script:
- mkdir -m 777 -p /mnt/pmem0/test
- cd build
- ctest
dependencies:
- build
coverage:
stage: build
tags:
- grouprunner
script:
#- echo pass | sudo -S dnf -y install python-pip
- pip install gcovr --user
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-g -O0 -fprofile-arcs -ftest-coverage" ..
- make -j 3
- mkdir -m 777 -p /mnt/pmem0/test
- ctest
- ~/.local/bin/gcovr -r .. --exclude _deps
coverage: '/^TOTAL.*\s+(\d+\%)$/'