mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-12-24 14:03:07 +00:00
CodeCov: Collect coverage from all source files
The "src" directory got renamed to "oi" and the previous rule stopped matching our source code. By changing to collect coverage for everything except for "build" and "extern", we should avoid this problem in the future.
This commit is contained in:
parent
79d40fe938
commit
6019a37dde
@ -188,8 +188,10 @@ jobs:
|
||||
name: Code Coverage
|
||||
when: always
|
||||
command: |
|
||||
lcov --directory . --capture --rc lcov_branch_coverage=1 --output-file coverage.info
|
||||
lcov --extract coverage.info '/tmp/object-introspection/src/*' '/tmp/object-introspection/include/*' --rc lcov_branch_coverage=1 --output-file coverage.info
|
||||
lcov --capture --directory . --rc lcov_branch_coverage=1 --output-file coverage.info
|
||||
# Empirically, extract-then-remove is faster than remove-then-extract
|
||||
lcov --extract coverage.info '/tmp/object-introspection/*' --rc lcov_branch_coverage=1 --output-file coverage.info
|
||||
lcov --remove coverage.info '/tmp/object-introspection/build/*' '/tmp/object-introspection/extern/*' --rc lcov_branch_coverage=1 --output-file coverage.info
|
||||
lcov --list --rc lcov_branch_coverage=1 coverage.info
|
||||
|
||||
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
|
||||
|
Loading…
Reference in New Issue
Block a user