mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-19 22:44:59 +01:00
ci: leave yaml-cpp out of the coverage report
The first run of the Coverage workflow listed 66 files of betterRenderer/thirdparty/yaml-cpp, all at 0%: the library is linked by every target of the game, so it's built with the coverage flags as well. They made up 4388 of the 16592 lines and took the total from 84.4% to 62.1%. betterRenderer/ is excluded as it is in sonar-project.properties.
This commit is contained in:
6
.github/workflows/coverage.yml
vendored
6
.github/workflows/coverage.yml
vendored
@@ -90,12 +90,14 @@ jobs:
|
||||
- name: Run the unit tests
|
||||
run: ./build/tests/unit/eu07_unit_tests
|
||||
|
||||
# the game's own sources only: no submodules, no vendored code, not the tests themselves
|
||||
# the game's own sources only: no submodules, no vendored code, not the tests themselves.
|
||||
# betterRenderer/ is left out for its thirdparty/yaml-cpp, which every target of the game links and so builds here
|
||||
- name: Coverage report
|
||||
run: |
|
||||
mkdir -p coverage-report/html
|
||||
gcovr --root . build \
|
||||
--exclude 'ref/' --exclude 'imgui/' --exclude 'stb/' --exclude 'tests/' --exclude 'build/' \
|
||||
--exclude 'ref/' --exclude 'imgui/' --exclude 'stb/' --exclude 'betterRenderer/' \
|
||||
--exclude 'tests/' --exclude 'build/' \
|
||||
--gcov-ignore-parse-errors=negative_hits.warn_once_per_file \
|
||||
--gcov-ignore-errors=no_working_dir_found \
|
||||
--print-summary \
|
||||
|
||||
Reference in New Issue
Block a user