]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Rely on codecov for 100% project coverage (#264)
authorSeth Michael Larson <sethmichaellarson@gmail.com>
Fri, 23 Aug 2019 12:00:13 +0000 (07:00 -0500)
committerGitHub <noreply@github.com>
Fri, 23 Aug 2019 12:00:13 +0000 (07:00 -0500)
.travis.yml
codecov.yml [new file with mode: 0644]
setup.cfg

index c9513a7331ab9a1dc508d611b91d21d4ade288b7..07207f99d152ec533d4f7e991a57258940e56ef5 100644 (file)
@@ -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 (file)
index 0000000..3920f5c
--- /dev/null
@@ -0,0 +1,8 @@
+coverage:
+    status:
+        patch:
+            default:
+                target: '100'
+        project:
+            default:
+                target: '100'
index feb7f5a7ead7a911cabd6212a60045f304886d21..3077d4606194fc2f1f684286c74ac9eeaf54c566 100644 (file)
--- 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