stages: - build - test - coverage default: image: registry.source.arknet.ch/fmorgner/turns/ci:latest build: stage: build variables: CMAKE_INSTALL_PREFIX: "ch.arknet.Turns" script: - weston --no-config --socket=$WAYLAND_DISPLAY --backend=headless & - 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 expire_in: 24 hours parallel: matrix: - BUILD_TYPE: - Debug - MinSizeRel coverage: stage: coverage 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