summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..d93f405
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,40 @@
+default:
+ image: registry.source.arknet.ch/fmorgner/turns/ci:1.0.0
+
+build:
+ stage: build
+ variables:
+ CMAKE_INSTALL_PREFIX: "ch.arknet.Turns"
+ script:
+ - weston --no-config --socket=$WAYLAND_DISPLAY --backend=headless &
+ - cmake --workflow --preset $BUILD_TYPE
+ - cmake --install build --config $BUILD_TYPE
+ artifacts:
+ paths:
+ - ${CMAKE_INSTALL_PREFIX}/
+ - build/**/*.gcda
+ - build/**/*.gcno
+ expire_in: 24 hours
+ parallel:
+ matrix:
+ - BUILD_TYPE:
+ - debug
+ - minsizerel
+
+report:
+ stage: test
+ script:
+ - lcov -c -o coverage.info -d build -b . --config-file .lcovrc
+ - lcov -l coverage.info
+ - genhtml -o coverage coverage.info
+ coverage: '/Total:\|(\d+\.?\d+)\%/'
+ artifacts:
+ paths:
+ - coverage/*
+ - coverage.info
+ expire_in: 24 hours
+ needs:
+ - job: build
+ parallel:
+ matrix:
+ - BUILD_TYPE: debug