.gitlab-ci.yml 1.03 KB
Newer Older
1
image: "dbisilm/nvm-based_data_structures:latest"
2
3
4
5
6
7
8

stages:
  - build
  - test

build:
  stage: build
9
10
  tags: 
    - grouprunner
11
12
13
  script:
    - mkdir build
    - cd build
14
    - cmake -DCMAKE_BUILD_TYPE=Release ../src
15
    - make
16
17
18
    # clean up unnecessary files and strip binaries
    - rm -rf _deps *tree generated
    - strip bench/point bench/scan bench/tree_* test/*Test
19
20
  artifacts:
    paths:
21
      - build/
22
    expire_in: 30 minutes
23
24
25

test:
  stage: test
26
27
  tags:
    - grouprunner
28
  script:
29
30
    - echo pass | sudo -S mkdir -m 777 -p /mnt/pmem/test
    - cd build
31
    - ctest
32
33
  dependencies:
    - build
34

35
36
coverage:
  stage: build
37
38
  tags: 
    - grouprunner
39
40
41
42
43
44
45
46
47
48
49
50
  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" ../src
    - make
    - echo pass | sudo -S mkdir -m 777 -p /mnt/pmem/test
    - ctest
    - ~/.local/bin/gcovr -r .. --exclude _deps
  coverage: '/^TOTAL.*\s+(\d+\%)$/'