diff options
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1132bb7..916433b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,8 @@ +stages: + - build + - test + - coverage + default: image: registry.source.arknet.ch/fmorgner/turns/ci:latest @@ -7,11 +12,27 @@ build: CMAKE_INSTALL_PREFIX: "ch.arknet.Turns" script: - weston --no-config --socket=$WAYLAND_DISPLAY --backend=headless & - - cmake --workflow --preset $BUILD_TYPE + - cmake --preset default + - cmake --build --preset default --config $BUILD_TYPE - cmake --install build --config $BUILD_TYPE artifacts: paths: - ${CMAKE_INSTALL_PREFIX}/ + - build/ + expire_in: 24 hours + parallel: + matrix: + - BUILD_TYPE: + - Debug + - MinSizeRel + +test: + stage: test + script: + - weston --no-config --socket=$WAYLAND_DISPLAY --backend=headless & + - ctest --preset default --build-config + artifacts: + paths: - build/**/*.gcda - build/**/*.gcno - build/**/*.res.c @@ -19,11 +40,11 @@ build: parallel: matrix: - BUILD_TYPE: - - debug - - minsizerel + - Debug + - MinSizeRel -report: - stage: test +coverage: + stage: coverage script: - lcov -c -o coverage.info -d build -b . --config-file .lcovrc - lcov -l coverage.info @@ -38,4 +59,4 @@ report: - job: build parallel: matrix: - - BUILD_TYPE: debug + - BUILD_TYPE: Debug |
