diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-09-12 13:01:05 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-09-12 13:09:15 -0400 |
commit | 45ca2195a97c85bf08f14df865df486a7ea5c275 (patch) | |
tree | 8cb13440df510534d1eabd4983376932bf3839f7 /.gitlab-ci.yml | |
parent | ac19ed0571c6dd8eb7bcd526d7ee0e45057c97d4 (diff) | |
download | pango-45ca2195a97c85bf08f14df865df486a7ea5c275.tar.gz |
ci: Add a test run under asan
This is largely copied from what GTK does.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5d4a265f..d41cac1e 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 + allow_failure: true + 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" + msys2-mingw64: stage: build tags: |