Compare commits
1 Commits
ce4cb13470
...
9a2a7614a9
| Author | SHA1 | Date | |
|---|---|---|---|
|
9a2a7614a9
|
10
ci-build.sh
10
ci-build.sh
@@ -261,7 +261,15 @@ build_and_test() {
|
||||
if command -v lcov >/dev/null 2>&1; then
|
||||
lcov --capture --directory . --output-file coverage.info \
|
||||
--rc lcov_branch_coverage=1 --ignore-errors inconsistent 2>&1 || true
|
||||
lcov --remove coverage.info '/usr/*' '*/tests/*' --output-file coverage.info \
|
||||
# Remove test files, stubs, system headers - only keep src/ production code
|
||||
lcov --remove coverage.info \
|
||||
'/usr/*' \
|
||||
'*/tests/*' \
|
||||
'*test*.c' \
|
||||
'*stub*.c' \
|
||||
'*/functionaltests/*' \
|
||||
'*/unittests/*' \
|
||||
--output-file coverage.info \
|
||||
--rc lcov_branch_coverage=1 --ignore-errors inconsistent 2>&1 || true
|
||||
if [ -f coverage.info ] && [ -s coverage.info ]; then
|
||||
local summary
|
||||
|
||||
Reference in New Issue
Block a user