diff --git a/scripts/ci/jobs/code-coverage.yml b/scripts/ci/jobs/code-coverage.yml index 2897757a48b..ddb52e16ed3 100644 --- a/scripts/ci/jobs/code-coverage.yml +++ b/scripts/ci/jobs/code-coverage.yml @@ -1,7 +1,5 @@ code coverage: stage: check - extends: - - .template-build-linux tags: [shell, envinf23] needs: [meta] variables: @@ -10,7 +8,8 @@ code coverage: CMAKE_ARGS: >- -DOGS_USE_PIP=ON -DBUILD_SHARED_LIBS=ON - after_script: + script: + - !reference [.template-build-linux, script] - cmake --build --preset $CMAKE_PRESET -t process_coverage coverage: '/lines: \d+\.\d+/' artifacts: diff --git a/scripts/cmake/gcovr.cfg.in b/scripts/cmake/gcovr.cfg.in index ca16c406613..b69d4386dee 100644 --- a/scripts/cmake/gcovr.cfg.in +++ b/scripts/cmake/gcovr.cfg.in @@ -4,4 +4,5 @@ cobertura = @CMAKE_BINARY_DIR@/coverage/cobertura.xml html-details = @CMAKE_BINARY_DIR@/coverage/html/index.html gcov-executable = @GCOV_EXECUTABLE@ gcov-parallel = yes -print-summary = yes \ No newline at end of file +print-summary = yes +gcov-ignore-parse-errors = negative_hits.warn