IAP GITLAB

Commit cf693390 authored by Hans Dembinski's avatar Hans Dembinski

generate coverage reports only for master branch

parent 19b56b21
Pipeline #669 passed with stage
in 2 minutes and 12 seconds
......@@ -9,25 +9,27 @@ variables:
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
build: # normal pipeline for each commit, except for commits to the master
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
except:
- master
coverage:
coverage: # special pipeline for master with coverage report
stage: build
tags:
- corsika
......@@ -46,6 +48,8 @@ coverage:
reports:
junit:
- build/test_outputs/junit*.xml
only:
- master
pages:
stage: build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment