Newer
Older
Hans Dembinski
committed
## 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
# script:
# - mkdir build
# - cd build
# - cmake .. -DCMAKE_BUILD_TYPE=Debug
# - cmake --build . -- -j4
# - ctest -j4 -V >& test.log || gzip -v -9 -S .gz test.log
# artifacts:
# expire_in: 1 year
# paths:
# - build/test.log.gz
# reports:
# junit:
# - build/test_outputs/junit*.xml
coverage:
stage: build
tags:
- corsika
script:
- mkdir build
- cmake .. -DCMAKE_BUILD_TYPE=Coverage
- cmake --build . -- -j4
- ctest -j4 -V >& test.log || gzip -v -9 -S .gz test.log
- cmake --build . --target coverage && tar czf coverage-report.tar.gz coverage-report
artifacts:
paths:
reports:
junit:
- cmake --build . --target doxygen
- mkdir .public
- cp -r Documentation/Doxygen/html .public/
artifacts:
paths:
- public
only:
- tags
- triggers
- schedules