From cf693390a47652abf26801db94b6bd1826b5507e Mon Sep 17 00:00:00 2001 From: Hans Dembinski <hans.dembinski@gmail.com> Date: Thu, 23 May 2019 11:19:05 +0200 Subject: [PATCH] generate coverage reports only for master branch --- .gitlab-ci.yml | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00d3e8cb..fc19790f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -- GitLab