summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-03-01 22:58:45 +0100
committerNora Widdecke <nora@sequoia-pgp.org>2021-03-01 23:15:26 +0100
commitabcd50a401e481cf598d8f7f223188f957187bc4 (patch)
tree7436903acc9bcdf99d4faa84ed498b7fa76f0e2c
parent79917186967a0c784d4fa8515aed99e3360ec7bf (diff)
ci: Use ASAN with the unit tests.nora/asan_sequoia
-rw-r--r--.gitlab-ci.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 33177c87..0cc6dd61 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -89,6 +89,26 @@ rust-stable:
CARGO_HOME: /cargo
RUSTFLAGS: -D warnings -A unused-parens
+sanitizer:
+ tags:
+ - linux
+ image: registry.gitlab.com/sequoia-pgp/build-docker-image/sanitizer-nightly:latest
+ needs: ["rust-stable"]
+ stage: test
+ script:
+ - if [ -d target ]; then find target | wc --lines; du -sh target; fi
+ - if [ -d cargo ]; then find cargo | wc --lines; du -sh cargo; fi
+ - llvm-symbolizer --version
+ - apt list nettle-dev
+ - cargo +nightly --color always test --lib --target x86_64-unknown-linux-gnu
+ variables:
+ CARGO_TARGET_DIR: /target
+ CARGO_HOME: /cargo
+ RUSTFLAGS: -Z sanitizer=address
+ RUSTDOCFLAGS: -Z sanitizer=address
+ ASAN_OPTIONS: detect_stack_use_after_return=1
+
+
windows-gnu:
tags:
- win