From: Bob Halley Date: Tue, 23 Jun 2020 01:47:07 +0000 (-0700) Subject: compute and load coverage from travis X-Git-Tag: v2.0.0rc2~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac845d832df1835d7b0ab885221f509652d94c7d;p=thirdparty%2Fdnspython.git compute and load coverage from travis --- diff --git a/.coverage.ini b/.coverage.ini deleted file mode 100644 index 1414ca6c..00000000 --- a/.coverage.ini +++ /dev/null @@ -1,3 +0,0 @@ -[run] -branch = True -source = dns diff --git a/.gitignore b/.gitignore index 37d27e54..7fa39fbc 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ dnspython.egg-info/ .python-version poetry.lock htmlcov +coverage.xml diff --git a/.travis.yml b/.travis.yml index 91646d7b..590704c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,8 @@ branches: except: - python3 install: - - pip install typing pylint cryptography idna requests requests-toolbelt + - pip install typing coverage pytest pytest-cov cryptography idna requests requests-toolbelt trio curio script: - - make test + - pytest --cov=dns --cov-report=xml:coverage.xml +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/pyproject.toml b/pyproject.toml index 12ad5104..3bd4a597 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,7 @@ cryptography = {version="^2.6", optional=true} trio = {version=">=0.14,<0.17", optional=true} curio = {version="^1.2", optional=true} sniffio = {version="^1.1", optional=true} +pytest-cov = "^2.10.0" [tool.poetry.dev-dependencies] mypy = "^0.781"