From db83fdd0cbd2a7149b39704eda5c107c1b743499 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 1 Jun 2020 17:21:15 +0800 Subject: [PATCH 1/2] 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 From de3280f943a51e9392ceedfbacc0f489a8aac352 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 1 Jun 2020 17:57:57 +0800 Subject: [PATCH 2/2] change syntax for lcov 1.13 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 86bbdada2a..f252f66a4c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -176,8 +176,8 @@ matrix: sleep 1 cd ${TRAVIS_BUILD_DIR} - lcov -d . --capture --rc lcov_branch_coverage=1 -o coverage.info \ - --exclude "*tests*" --exclude "*deps*" + lcov -d . --capture --rc lcov_branch_coverage=1 -o coverage.info + lcov --remove coverage.info '*tests*' '*deps*' -o coverage.info lcov -l --rc lcov_branch_coverage=1 coverage.info || travis_terminate $? gem install coveralls-lcov