IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 8c2ccb82 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

better exclude patterns for coverage

parent 9e4f3858
No related branches found
No related tags found
No related merge requests found
...@@ -479,7 +479,7 @@ coverage: ...@@ -479,7 +479,7 @@ coverage:
- ctest -j4 - ctest -j4
- 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(.*\%)\s/' coverage: '/^.*lines\.+:\s(.*\%)\s/'
rules: rules:
- if: '$CI_MERGE_REQUEST_LABELS =~ /Ready for code review/' # run on merge requests, if label 'Ready for code review' is set - if: '$CI_MERGE_REQUEST_LABELS =~ /Ready for code review/' # run on merge requests, if label 'Ready for code review' is set
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
......
...@@ -164,7 +164,11 @@ if (CMAKE_BUILD_TYPE STREQUAL Coverage) ...@@ -164,7 +164,11 @@ if (CMAKE_BUILD_TYPE STREQUAL Coverage)
add_custom_command ( add_custom_command (
OUTPUT coverage.info OUTPUT coverage.info
COMMAND ${LCOV_BIN_DIR}/lcov -q --remove raw-coverage.info "*/usr/*" "/usr/*" --output-file coverage2.info COMMAND ${LCOV_BIN_DIR}/lcov -q --remove raw-coverage.info "*/usr/*" "/usr/*" --output-file coverage2.info
COMMAND ${LCOV_BIN_DIR}/lcov --remove coverage2.info "*/externals/*" "*/tests/*" "*/sibyll2.3d.cpp" "*/.conan/*" "*/include/Pythia8/*" "${CMAKE_SOURCE_DIR}/modules/*" "${CMAKE_BINARY_DIR}/modules/*" --output-file coverage.info COMMAND ${LCOV_BIN_DIR}/lcov --remove coverage2.info
"*/externals/*" "*/tests/*" "*/sibyll2.3d.cpp" "*/.conan/*"
"*/include/Pythia8/*" "*/install/*" "${CMAKE_SOURCE_DIR}/modules/*"
"${CMAKE_BINARY_DIR}/modules/*"
--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