From 9ce76b97f19f4fdf0aa9e9f982ac26ffc719e830 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 5 Mar 2019 11:02:24 +0000 Subject: [PATCH] ci: Add a build with G_DISABLE_ASSERT defined We want GLib to build correctly with this defined, and for all its tests to still pass. Signed-off-by: Philip Withnall Helps: #1708 --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 765fb5dd9..e2afb12dd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,6 +51,30 @@ fedora-x86_64: - "_build/meson-logs" - "_coverage" +G_DISABLE_ASSERT: + stage: build + except: + - tags + variables: + CPPFLAGS: "-DG_DISABLE_ASSERT" + script: + - meson ${MESON_COMMON_OPTIONS} + --werror + -Dsystemtap=true + -Ddtrace=true + -Dfam=true + -Dinstalled_tests=true + _build + - ninja -C _build + - meson test -C _build --timeout-multiplier ${MESON_TEST_TIMEOUT_MULTIPLIER} --no-suite flaky + artifacts: + name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + when: always + paths: + - "_build/config.h" + - "_build/glib/glibconfig.h" + - "_build/meson-logs" + .cross-template: &cross-template stage: build except: