]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
compute and load coverage from travis
authorBob Halley <halley@dnspython.org>
Tue, 23 Jun 2020 01:47:07 +0000 (18:47 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 23 Jun 2020 01:47:07 +0000 (18:47 -0700)
.coverage.ini [deleted file]
.gitignore
.travis.yml
pyproject.toml

diff --git a/.coverage.ini b/.coverage.ini
deleted file mode 100644 (file)
index 1414ca6..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-[run]
-branch = True
-source = dns
index 37d27e542ddded4599674b577dce8bf574d9b8ec..7fa39fbc7deb3acc0df9968058043686365210c1 100644 (file)
@@ -14,3 +14,4 @@ dnspython.egg-info/
 .python-version
 poetry.lock
 htmlcov
+coverage.xml
index 91646d7baf2428565e014d14b9bf360e84a680be..590704c0afdd529ba456548db844a8a2a13cb529 100644 (file)
@@ -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)
index 12ad510425240c13f0ae83b3afb23d5174062521..3bd4a597d88545185b247e4ee7506dbf02b485b1 100644 (file)
@@ -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"