[gtk/asan-ci] ci: Add a build with asan
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/asan-ci] ci: Add a build with asan
- Date: Thu, 9 Jul 2020 23:44:02 +0000 (UTC)
commit d98c0d32f24f974f66d66663dfbf37292efb3fa9
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 8 22:22:31 2020 -0400
ci: Add a build with asan
Run our testsuite under asan. We do this in a
separate build, since we need to turn off
introspection to make the build succeed.
As Michael Catanzaro pointed out, this requires a
privileged runner in order to use kernel apis.
.gitlab-ci.yml | 16 ++++++++++++++++
.gitlab-ci/.lock | 0
2 files changed, 16 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 469c68405e..3558e9f6ef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -180,6 +180,22 @@ static-scan:
- _scan_build/meson-logs
allow_failure: true
+# Run tests with the address sanitizer. We need to turn off introspection,
+# since it is incompatible with asan
+asan-build:
+ image: $FEDORA_IMAGE
+ tags: [ privileged ]
+ 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 wayland
+ artifacts:
+ paths:
+ - _build/meson-logs
+ allow_failure: true
+
reference:
image: $DOCS_IMAGE
stage: docs
diff --git a/.gitlab-ci/.lock b/.gitlab-ci/.lock
new file mode 100644
index 0000000000..e69de29bb2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]