Skip to content

Commit

Permalink
Merge branch 'fix-coverage' into 'master'
Browse files Browse the repository at this point in the history
[ci] Fix code coverage

See merge request ogs/ogs!4947
  • Loading branch information
endJunction committed Mar 16, 2024
2 parents c42aeb7 + 4084234 commit 43a9be6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions scripts/ci/jobs/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
code coverage:
stage: check
extends:
- .template-build-linux
tags: [shell, envinf23]
needs: [meta]
variables:
Expand All @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion scripts/cmake/gcovr.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
print-summary = yes
gcov-ignore-parse-errors = negative_hits.warn

0 comments on commit 43a9be6

Please sign in to comment.