From e1e081be8a119e7ada0dfbf7b750d6f80d433e49 Mon Sep 17 00:00:00 2001 From: Mark Meredith Date: Tue, 23 Jun 2020 15:57:57 +0000 Subject: [PATCH] Run CTests for both Debug and Release --- .gitlab-ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce29162..e349ab6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,12 +14,23 @@ test:meson: tags: - mfix-exa -test:cmake: +.test:cmake: &cmake_def script: - python -m pip install cmake ninja conan - - cmake -S. -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug + - cmake -S. -Bbuild -GNinja -DCMAKE_BUILD_TYPE=$BUILD_TYPE - cmake --build build --target unit_tests_csg - cd build - ctest tags: - mfix-exa + +test:cmake:debug: + variables: + BUILD_TYPE: "Debug" + <<: *cmake_def + +test:cmake:release: + variables: + BUILD_TYPE: "Release" + allow_failure: true + <<: *cmake_def -- GitLab