Commit 7c212cc6 authored by Philipp Götze's avatar Philipp Götze
Browse files

💚 Added .gitlab-ci.yml for CI

parent f4f11fae
Pipeline #142 canceled with stages
in 25 minutes and 54 seconds
image: "dbisilm/pfabric:alpine"
stages:
- build
- test
build:
stage: build
tags:
- grouprunner
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ../src
- make
# clean up unnecessary files and strip binaries
- rm -rf *-src *-download *-build 3rdparty
- strip test/*Test
artifacts:
paths:
- build/
expire_in: 30 minutes
test:
stage: test
tags:
- grouprunner
script:
- cd build
- ctest
dependencies:
- build
coverage:
stage: build
tags:
- grouprunner
script:
- echo pfpass | sudo -S apk add py-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
- ctest
- ~/.local/bin/gcovr -r .. --exclude 3rdparty --exclude '(.+/)?catch\.hpp$'
coverage: '/^TOTAL.*\s+(\d+\%)$/'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment