[glib: 9/13] ci: Add a build with G_DISABLE_ASSERT defined



commit 9ce76b97f19f4fdf0aa9e9f982ac26ffc719e830
Author: Philip Withnall <withnall endlessm com>
Date:   Tue Mar 5 11:02:24 2019 +0000

    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 <withnall endlessm com>
    
    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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]