1
0
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:
Oscar Michael Abrina 2020-10-29 11:13:56 -07:00 committed by GitHub
parent fd18f4c47a
commit a34048debe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: