From db83fdd0cbd2a7149b39704eda5c107c1b743499 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 1 Jun 2020 17:21:15 +0800 Subject: [PATCH] exclude deps and tests directories from coverage report. [TD-491] --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index af41d45ac0..86bbdada2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 -- GitLab