Skip to content

Commit

Permalink
Use cmake presets in .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Sep 1, 2023
1 parent f4c7d11 commit e26e812
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ stages:
script:
- *setup_cpp
- echo -e "section_end:"`date +%s`":.build\r\e[0Ksection_start:"`date +%s`":hidden_section\r\e[0K configure"
- cmake -S . -B ./build -G Ninja -D CMAKE_BUILD_TYPE=Debug -D CMAKE_UNITY_BUILD=YES -D CMAKE_SKIP_INSTALL_RULES=YES
- cmake --preset out/build/unixlike-${COMPILER}-debug
- run-${COMPILER}-tidy -p out/build/unixlike-${COMPILER}-debug
- echo -e "section_end:"`date +%s`":hidden_section\r\e[0Ksection_start:"`date +%s`":.build\r\e[0K"
- cmake --build ./build --config Debug
- cmake --build ./build --config Debug --target test
- ninja -C out/build/unixlike-${COMPILER}-debug
- ninja -C out/build/unixlike-${COMPILER}-debug test
- gcovr .

default:
Expand All @@ -49,10 +50,12 @@ test_linux_llvm:
stage: test
variables:
compiler: llvm
COMPILER: clang
extends: .build

test_linux_gcc:
stage: test
variables:
compiler: gcc
COMPILER: gcc
extends: .build

0 comments on commit e26e812

Please sign in to comment.