From ac845d832df1835d7b0ab885221f509652d94c7d Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Mon, 22 Jun 2020 18:47:07 -0700 Subject: [PATCH] compute and load coverage from travis --- .coverage.ini | 3 --- .gitignore | 1 + .travis.yml | 6 ++++-- pyproject.toml | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 .coverage.ini 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" -- 2.47.3