IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 8176e9d0 authored by Ralf Ulrich's avatar Ralf Ulrich
Browse files

Merge branch 'coverage-ci' into 'master'

Coverage ci

See merge request AirShowerPhysics/corsika!139
parents 3ca16061 8f635a35
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ coverage: # special manual job to run after normal pipeline finished ...@@ -159,7 +159,7 @@ coverage: # special manual job to run after normal pipeline finished
- ctest -j4 -V > test.log - ctest -j4 -V > test.log
- cmake --build . --target coverage - cmake --build . --target coverage
- tar czf coverage-report.tar.gz coverage-report - tar czf coverage-report.tar.gz coverage-report
coverage: '/functions.*\s+(\d+\%)\s/' coverage: '/^.*functions\.+:\s(.*\%)\s/'
artifacts: artifacts:
expire_in: 1 year expire_in: 1 year
paths: paths:
......
...@@ -96,7 +96,7 @@ if (CMAKE_BUILD_TYPE STREQUAL Coverage) ...@@ -96,7 +96,7 @@ if (CMAKE_BUILD_TYPE STREQUAL Coverage)
# remove uninteresting entries # remove uninteresting entries
add_custom_command ( add_custom_command (
OUTPUT coverage.info 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 ${LCOV_BIN_DIR}/lcov --remove coverage2.info "*/ThirdParty/*" --output-file coverage.info
COMMAND ${CMAKE_COMMAND} -E remove coverage2.info COMMAND ${CMAKE_COMMAND} -E remove coverage2.info
DEPENDS raw-coverage.info DEPENDS raw-coverage.info
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment