Skip to content

Commit 5f7ffe0

Browse files
committed
Travis coverage: include branch coverage
1 parent 063c8b6 commit 5f7ffe0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

travis.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ if [ -n "${XVFBPID:-}" ]; then
9393
fi
9494

9595
if [ -n "${COVERALLS_SERVICE_NAME}" ]; then
96-
lcov --directory build --capture --output-file coverage.info
97-
lcov --remove coverage.info \
96+
lcov --rc lcov_branch_coverage=1 --directory build --capture --output-file coverage.info
97+
lcov --rc lcov_branch_coverage=1 --remove coverage.info \
9898
"${PWD}/3rdparty/*" \
9999
"${PWD}/build/*" \
100100
"${PWD}/examples/*" \
101101
"${PWD}/features/*" \
102102
"${PWD}/tests/*" \
103103
"/usr/*" \
104104
--output-file coverage.info
105-
lcov --list coverage.info
105+
lcov --rc lcov_branch_coverage=1 --list coverage.info
106106
coveralls-lcov coverage.info
107107
fi

0 commit comments

Comments
 (0)