[libhandy/asan: 677/677] gitlab-ci: Run address sanitizer during build




commit 83a79ca192765d7bbd24fa42ce1eaf2b91a8727e
Author: Guido Günther <agx sigxcpu org>
Date:   Mon May 6 15:53:29 2019 +0200

    gitlab-ci: Run address sanitizer during build

 .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 059bb706..6cf6db1e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,6 +41,20 @@ build-debian-gcc:
     paths:
       - _build
 
+build-debian-gcc-asan:
+  image: debian:buster
+  tags:
+    - privileged
+  stage: build
+  variables:
+    BUILD_OPTS: -Dintrospection=disabled -Db_sanitize=address --werror
+  script:
+    - *build_steps
+  artifacts:
+    when: always
+    paths:
+      - _build
+
 build-debian-clang:
   image: debian:buster
   before_script:
@@ -103,6 +117,24 @@ unit-test:
     paths:
       - _build
 
+
+unit-test-asan:
+  image: debian:buster
+  tags:
+    - privileged
+  stage: test+docs
+  dependencies:
+    - build-debian-gcc-asan
+  variables:
+    ASAN_OPTIONS: fast_unwind_on_malloc=0
+    LSAN_OPTIONS: suppressions=../data/leak-suppress.txt
+  script:
+    - xvfb-run -s -noreset ninja -C _build test
+  artifacts:
+    when: always
+    paths:
+      - _build
+
 package-debian-buster:
   tags: []
   extends: .l5-build-debian-package


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