[pango/asan-ci: 2/2] ci: Add a test run under asan




commit ddd3f339a4a5e58e581c850ee4537086fa4fe543
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 12 13:01:05 2020 -0400

    ci: Add a test run under asan
    
    This is largely copied from what GTK does.

 .gitlab-ci.yml | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5d4a265f..b9b89048 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - build
+  - analysis
   - docs
   - deploy
 
@@ -9,7 +10,7 @@ variables:
   MESON_TEST_TIMEOUT_MULTIPLIER: 2
 
 linux-fedora:
-  image: registry.gitlab.gnome.org/gnome/pango/fedora:v1
+  image: registry.gitlab.gnome.org/gnome/pango/fedora:v2
   stage: build
   variables:
     EXTRA_MESON_FLAGS: "--buildtype=debug --default-library=both"
@@ -31,6 +32,28 @@ linux-fedora:
       - "${CI_PROJECT_DIR}/_build/hello.png"
       - "${CI_PROJECT_DIR}/_build/fontlist.txt"
 
+asan-build:
+  image: registry.gitlab.gnome.org/gnome/pango/fedora:v2
+  tags: [ asan ]
+  stage: analysis
+  variables:
+  script:
+    - CC=clang meson --buildtype=debugoptimized -Db_sanitize=address -Db_lundef=false -Dintrospection=false 
_build
+    - ninja -C _build
+    - .gitlab-ci/run-tests.sh _build
+  artifacts:
+    when: always
+    reports:
+      junit:
+        - "${CI_PROJECT_DIR}/_build/report.xml"
+    name: "gtk-${CI_COMMIT_REF_NAME}"
+    paths:
+      - "${CI_PROJECT_DIR}/_build/meson-logs"
+      - "${CI_PROJECT_DIR}/_build/report.xml"
+      - "${CI_PROJECT_DIR}/_build/hello.png"
+      - "${CI_PROJECT_DIR}/_build/fontlist.txt"
+    allow_failure: true
+
 msys2-mingw64:
   stage: build
   tags:


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