From 46402dd59ff59e489fa952b3d6c42dc4b93a06b9 Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Fri, 23 Aug 2019 07:00:13 -0500 Subject: [PATCH] Rely on codecov for 100% project coverage (#264) --- .travis.yml | 2 +- codecov.yml | 8 ++++++++ setup.cfg | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 codecov.yml diff --git a/.travis.yml b/.travis.yml index c9513a73..07207f99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,5 +30,5 @@ script: after_script: - if [ -f .coverage ]; then python -m pip install codecov; - codecov; + codecov --required; fi diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..3920f5c1 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,8 @@ +coverage: + status: + patch: + default: + target: '100' + project: + default: + target: '100' diff --git a/setup.cfg b/setup.cfg index feb7f5a7..3077d460 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,4 +16,4 @@ line_length = 88 multi_line_output = 3 [tool:pytest] -addopts = --cov=httpx --cov=tests --cov-report=term-missing --cov-fail-under=100 +addopts = --cov=httpx --cov=tests --cov-report=term-missing