diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0983d91b9859ab398640717339986836e040e1c6..4cf604db46c633639f06d2dcf1bdd1d590115075 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,9 @@ 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 @@ -14,11 +17,11 @@ build: - cmake --build . -- -j4 - UBSAN_OPTIONS=print_stacktrace=1 LSAN_OPTIONS=verbosity=1:log_threads=1 - ASAN_OPTIONS=detect_leaks=0:detect_stack_use_after_return=1 ctest -V -O test.log + ASAN_OPTIONS=detect_leaks=0:detect_stack_use_after_return=1 ctest -V -O test.txt artifacts: expire_in: 1 week paths: - - build/test.log + - build/test.txt when: on_failure reports: junit: