mirror of
https://github.com/FreeRTOS/coreMQTT
synced 2025-06-10 21:33:04 +08:00
Print only a single set of results from lcov coverage report (#93)
The original GA had to run lcov multiple times to remove sources from the report even though it could have just been run a single time. This also makes it so that the results are only printed once.
This commit is contained in:
parent
fd18f4c47a
commit
a34048debe
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -30,9 +30,8 @@ jobs:
|
||||
- name: Run Coverage
|
||||
run: |
|
||||
make -C build/ coverage
|
||||
lcov --rc lcov_branch_coverage=1 --remove build/coverage.info '*test*' --output-file build/coverage.info
|
||||
lcov --rc lcov_branch_coverage=1 --remove build/coverage.info '*CMakeCCompilerId*' --output-file build/coverage.info
|
||||
lcov --rc lcov_branch_coverage=1 --remove build/coverage.info '*mocks*' --output-file build/coverage.info
|
||||
declare -a EXCLUDE=("\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*")
|
||||
echo ${EXCLUDE[@]} | xargs lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info
|
||||
lcov --rc lcov_branch_coverage=1 --list build/coverage.info
|
||||
- name: Check Coverage
|
||||
env:
|
||||
|
Loading…
x
Reference in New Issue
Block a user