Skip to content

Commit 480763d

Browse files
authored
Merge pull request #13 from pllee4/fix-lcov_error
.github: workflows: ci.yml: temporary fix for lcov bug
2 parents 0771807 + db4d4ba commit 480763d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
needs: build
2828
# The type of runner that the job will run on
2929
runs-on: ubuntu-latest
30+
# work around lcov bug #316; remove once lcov is fixed (see https://github.com/linux-test-project/lcov/issues/316)
31+
env:
32+
LCOBUG: "--ignore-errors mismatch"
3033

3134
# Steps represent a sequence of tasks that will be executed as part of the job
3235
steps:
@@ -41,7 +44,7 @@ jobs:
4144
- name: Test
4245
run: cd ./build && make test
4346
- name: Check code coverage
44-
run: /usr/bin/lcov --directory ./build --capture --output-file ./build/coverage.info && /usr/bin/lcov --remove ./build/coverage.info "/usr/*" "*/googletest/googletest/*" --output-file ./build/coverage.info
47+
run: /usr/bin/lcov --directory ./build --capture --output-file ./build/coverage.info $LCOBUG && /usr/bin/lcov --remove ./build/coverage.info "/usr/*" "*/googletest/googletest/*" --output-file ./build/coverage.info
4548
- name: List coverage summary
4649
run: /usr/bin/lcov --list ./build/coverage.info
4750
- name: Upload report to codecov

0 commit comments

Comments
 (0)