From fb9cff3e90591a385ac82a778e4817e235fc053a Mon Sep 17 00:00:00 2001 From: Hans Dembinski <hans.dembinski@gmail.com> Date: Wed, 22 May 2019 11:25:22 +0200 Subject: [PATCH] reverted unrelated changes to master and place sanitizer variables in variables section --- .gitlab-ci.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c4a7d33..1e2b81ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,25 +2,28 @@ image: corsika/devel:u-18.04 variables: GIT_SSL_NO_VERIFY: "1" + ## Runtime options for sanitizers + # (detect_leaks=0 because leak detection doesn't work in CI, but you can + # try to test with leak detection locally by using detect_leaks=1) + UBSAN_OPTIONS: "print_stacktrace=1" + LSAN_OPTIONS: "log_threads=1" + ASAN_OPTIONS: "detect_leaks=0:detect_stack_use_after_return=1" build: stage: build tags: - corsika - - # detect_leaks=0 because leak detection doesn't work in CI, but you can - # try to test with leak detection locally, just set detect_leaks=1 script: - mkdir build - cd build - cmake .. - - cmake --build . -- -j4 - - UBSAN_OPTIONS=print_stacktrace=1 - LSAN_OPTIONS=log_threads=1 - ASAN_OPTIONS=detect_leaks=0:detect_stack_use_after_return=1 ctest -j4 -V -O test.log + - cmake --build . -- -j 4 + - ctest -j4 -V >& test.log after_script: - cd build + - ls - gzip -v -9 -S .gz test.log + - pwd artifacts: expire_in: 1 week paths: -- GitLab