summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-31 11:07:49 -0500
committerBrad King <brad.king@kitware.com>2022-01-31 11:34:12 -0500
commit45feab3c001766ac42115eeb0956b6ad170843f7 (patch)
tree977d74b7af8277b1ba058b1d3334c32540133f6b /.gitlab
parent74466016ec34ca0598ae3de546b7e71fc983b397 (diff)
downloadcmake-45feab3c001766ac42115eeb0956b6ad170843f7.tar.gz
gitlab-ci: enable assertions on fedora34-ninja jobs
We should have at least one CI job in merge request pipelines that builds CMake with assertions enabled. We avoid using the `Debug` configuration in order to keep CI artifacts small, so instead use the `Release` configuration without `-DNDEBUG`.
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/configure_fedora34_ninja.cmake4
-rw-r--r--.gitlab/os-linux.yml1
2 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_fedora34_ninja.cmake b/.gitlab/ci/configure_fedora34_ninja.cmake
index 37bc189dbc..629f7920a0 100644
--- a/.gitlab/ci/configure_fedora34_ninja.cmake
+++ b/.gitlab/ci/configure_fedora34_ninja.cmake
@@ -1,6 +1,10 @@
set(CMake_TEST_ISPC "ON" CACHE STRING "")
set(CMake_TEST_GUI "ON" CACHE BOOL "")
+# "Release" flags without "-DNDEBUG" so we get assertions.
+set(CMAKE_C_FLAGS_RELEASE "-O3" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_RELEASE "-O3" CACHE STRING "")
+
# Cover compilation with C++11 only and not higher standards.
set(CMAKE_CXX_STANDARD "11" CACHE STRING "")
diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml
index c831530701..90c10a25d0 100644
--- a/.gitlab/os-linux.yml
+++ b/.gitlab/os-linux.yml
@@ -131,6 +131,7 @@
variables:
CMAKE_CONFIGURATION: fedora34_ninja
+ CMAKE_CI_BUILD_TYPE: Release
CTEST_NO_WARNINGS_ALLOWED: 1
.fedora34_ninja_multi: