mirror of
https://github.com/mat007/turtle.git
synced 2026-08-21 21:19:47 +00:00
Ignore some lcov warnings/errors
This commit is contained in:
parent
2b5f9788a5
commit
adcd02ec05
1 changed files with 8 additions and 4 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -187,13 +187,17 @@ jobs:
|
||||||
fi
|
fi
|
||||||
GCOV=gcov-${ver}
|
GCOV=gcov-${ver}
|
||||||
lcov --version
|
lcov --version
|
||||||
lcov --gcov-tool="$GCOV" --directory "$GITHUB_WORKSPACE/test" --capture --output-file all.info
|
LCOV_OPTIONS=()
|
||||||
|
LCOV_OPTIONS+=(--rc "branch_coverage=0")
|
||||||
|
LCOV_OPTIONS+=(--ignore-errors "inconsistent,mismatch,unused")
|
||||||
|
|
||||||
|
lcov "${LCOV_OPTIONS[@]}" --gcov-tool="$GCOV" --directory "$GITHUB_WORKSPACE/test" --capture --output-file all.info
|
||||||
# dump a summary on the console
|
# dump a summary on the console
|
||||||
lcov --list all.info
|
lcov "${LCOV_OPTIONS[@]}" --list all.info
|
||||||
# Limit to our files (header-only in this case)
|
# Limit to our files (header-only in this case)
|
||||||
lcov --extract all.info "$GITHUB_WORKSPACE/include/*" --output-file coverage.info
|
lcov "${LCOV_OPTIONS[@]}" --extract all.info "$GITHUB_WORKSPACE/include/*" --output-file coverage.info
|
||||||
# Output what was collected
|
# Output what was collected
|
||||||
lcov --list coverage.info
|
lcov "${LCOV_OPTIONS[@]}" --list coverage.info
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
if: matrix.coverage
|
if: matrix.coverage
|
||||||
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
|
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue