diff options
Diffstat (limited to '.gitlab/os-linux.yml')
-rw-r--r-- | .gitlab/os-linux.yml | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml index 7caf507..1c97377 100644 --- a/.gitlab/os-linux.yml +++ b/.gitlab/os-linux.yml @@ -118,6 +118,36 @@ ## Linux-specific scripts +.before_script_linux: &before_script_linux + - .gitlab/ci/cmake.sh + - .gitlab/ci/ninja.sh + - export PATH=$PWD/.gitlab:$PWD/.gitlab/cmake/bin:$PATH + - cmake --version + - ninja --version + +.cmake_build_linux: + stage: build + + script: + - *before_script_linux + - .gitlab/ci/sccache.sh + - sccache --start-server + - sccache --show-stats + - "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_configure.cmake" + - "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_build.cmake" + - sccache --show-stats + + interruptible: true + +.cmake_test_linux: + stage: test + + script: + - *before_script_linux + - "$LAUNCHER ctest --output-on-failure -V -S .gitlab/ci/ctest_test.cmake" + + interruptible: true + .cmake_build_release_linux: stage: build @@ -154,7 +184,7 @@ stage: test-ext script: - - *before_script_unix + - *before_script_linux # Make the CMake package available. - mkdir -p build/install - tar -C build/install --strip-components=1 -xzf build/cmake-*-Linux-x86_64.tar.gz @@ -170,7 +200,7 @@ stage: test-ext script: - - *before_script_unix + - *before_script_linux - .gitlab/ci/sccache.sh - sccache --start-server - sccache --show-stats |