exclude deps and tests directories from coverage report.

[TD-491]
This commit is contained in:
Shuduo Sang 2020-06-01 17:21:15 +08:00
parent c97e4f1404
commit db83fdd0cb
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@ matrix:
sleep 1
cd ${TRAVIS_BUILD_DIR}
lcov -d . --capture --rc lcov_branch_coverage=1 -o coverage.info
lcov -d . --capture --rc lcov_branch_coverage=1 -o coverage.info \
--exclude "*tests*" --exclude "*deps*"
lcov -l --rc lcov_branch_coverage=1 coverage.info || travis_terminate $?
gem install coveralls-lcov