From 8f635a3513afc41c71470dd3bf6ce286ba122afb Mon Sep 17 00:00:00 2001 From: Ralf Ulrich <ralf.ulrich@kit.edu> Date: Wed, 5 Jun 2019 22:38:40 +0200 Subject: [PATCH] Coverage ci --- .gitlab-ci.yml | 2 +- CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 28e29cbda..20bdd0d62 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -159,7 +159,7 @@ coverage: # special manual job to run after normal pipeline finished - ctest -j4 -V > test.log - cmake --build . --target coverage - tar czf coverage-report.tar.gz coverage-report - coverage: '/functions.*\s+(\d+\%)\s/' + coverage: '/^.*functions\.+:\s(.*\%)\s/' artifacts: expire_in: 1 year paths: diff --git a/CMakeLists.txt b/CMakeLists.txt index cf20efb46..3c90dae23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ if (CMAKE_BUILD_TYPE STREQUAL Coverage) # remove uninteresting entries add_custom_command ( OUTPUT coverage.info - COMMAND ${LCOV_BIN_DIR}/lcov --remove raw-coverage.info "*/usr/*" --output-file coverage2.info + COMMAND ${LCOV_BIN_DIR}/lcov -q --remove raw-coverage.info "*/usr/*" --output-file coverage2.info COMMAND ${LCOV_BIN_DIR}/lcov --remove coverage2.info "*/ThirdParty/*" --output-file coverage.info COMMAND ${CMAKE_COMMAND} -E remove coverage2.info DEPENDS raw-coverage.info -- GitLab