From: Bob Halley Date: Wed, 1 Jul 2020 17:15:19 +0000 (-0700) Subject: try to deconfuse codecov X-Git-Tag: v2.0.0rc2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5765181c220b96b1543395faaf5e43eb778a45ff;p=thirdparty%2Fdnspython.git try to deconfuse codecov --- diff --git a/.travis.yml b/.travis.yml index 2d416a5e..584f4a71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,6 @@ install: - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - ~/.poetry/bin/poetry install -E dnssec -E doh -E idna -E trio -E curio script: - - ~/.poetry/bin/poetry run pytest --cov=dns --cov-report=xml:coverage.xml + - ~/.poetry/bin/poetry run pytest --cov=. --cov-report=xml:coverage.xml after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0f79715a..5185c7cf 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -31,7 +31,7 @@ jobs: - script: | pip install pytest pytest-cov pytest-azurepipelines - pytest --junitxml=junit/test-results.xml --cov=dns --cov-report=xml --cov-report=html + pytest --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html displayName: 'pytest' - task: PublishTestResults@2 diff --git a/codecov.yml b/codecov.yml index 1b446323..002b105b 100644 --- a/codecov.yml +++ b/codecov.yml @@ -4,3 +4,8 @@ coverage: default: target: auto threshold: 2% +ignore: + - 'tests/*' + - 'examples/*' + - 'doc/*' + - 'setup.py'