Skip to content

Commit

Permalink
ci: Ignore source errors for coverage calculation
Browse files Browse the repository at this point in the history
This allows the job to run without the build dependencies.
Alternatively, this flag can be removed in favor of installing the
dependencies for the header files.
  • Loading branch information
taminob committed Feb 16, 2025
1 parent 0c89aba commit b9da135
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cpp-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,23 @@ jobs:
run: |
lcov --capture --initial \
--directory . \
--ignore-errors mismatch \
--ignore-errors mismatch,source \
--output-file baseline_coverage
build/test/tests || echo $?
lcov --capture \
--directory . \
--ignore-errors mismatch \
--ignore-errors mismatch,source \
--output-file total_coverage
lcov \
--add-tracefile baseline_coverage \
--add-tracefile total_coverage \
--ignore-errors mismatch \
--ignore-errors mismatch,source \
--output-file measured_coverage
lcov --remove measured_coverage "/usr*" \
--ignore-errors mismatch \
--ignore-errors mismatch,source \
--output-file coverage_without_system_files
lcov --remove coverage_without_system_files "*/test/*" \
--ignore-errors mismatch \
--ignore-errors mismatch,source \
--output-file coverage_without_system_and_test_files
genhtml \
--output-directory coverage \
Expand Down

0 comments on commit b9da135

Please sign in to comment.