From 5c78cbd3567d2b4876c4e6309cacf26f2f115211 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 27 Jul 2021 09:44:12 +1000 Subject: [PATCH] ci: add a build test for buildtype=release --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 706113b6b..dc06a6501 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -213,6 +213,15 @@ build_with_custom_options: - ninja -C "$BUILD_DIR" - ninja -C "$BUILD_DIR" test +# A release build with NDEBUG, all options on auto() but tests explicitly +# enabled. This should show issues with tests failing due to different +# optimization or relying on assert. +build_release: + extends: + - .build_on_fedora + variables: + MESON_OPTIONS: "-Dtest=enabled -Dbuildtype=release -Db_ndebug=true" + valgrind: extends: - .build_on_fedora