From e6da4099ee075ec4215cbaa31eccf4e6a2810ef6 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 30 Dec 2018 01:14:41 -0600 Subject: [PATCH] Skip test folders from coverage report --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c974d05..2afe944 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,7 +33,7 @@ test_py3: script: - cd src - '%PYTHON3% -m coverage run run_tests.py' - - '%PYTHON3% -m coverage report' + - '%PYTHON3% -m coverage report --omit="test*"' coverage: '/TOTAL.+ ([0-9]{1,3}%)/' only: @@ -123,7 +123,7 @@ test_py2: script: - cd src - '%PYTHON2% -m coverage run run_tests.py' - - '%PYTHON2% -m coverage report' + - '%PYTHON2% -m coverage report --omit="*/test*"' coverage: '/TOTAL.+ ([0-9]{1,3}%)/' only: - master