Fix codecov config.
authorJelmer Vernooij <jelmer@jelmer.uk>
Sat, 1 Apr 2017 17:58:07 +0000 (17:58 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Sat, 1 Apr 2017 17:58:07 +0000 (17:58 +0000)
.codecov.yml [new file with mode: 0644]
.travis.yml

diff --git a/.codecov.yml b/.codecov.yml
new file mode 100644 (file)
index 0000000..70190f7
--- /dev/null
@@ -0,0 +1,9 @@
+comment: false
+coverage:
+  status:
+    patch: false
+    project:
+      unit:
+        flags: noext
+      litmus:
+        flags: cext
index 55d80cd56668b2eb3eda857cae89c44c40e34439..39efb96148c3b6f9ff36cf8b6d82e1a846594418 100644 (file)
@@ -28,9 +28,13 @@ install:
 script:
   # Test without c extensions
   - python -m coverage run --source=dulwich -m unittest dulwich.tests.test_suite
-  - codecov -c -F noext
+  - mv .coverage .coverage.noext
 
   # Test with c extensions
   - python setup.py build_ext -i
   - python -m coverage run --source=dulwich -m unittest dulwich.tests.test_suite
-  - codecov -c -F cext
+  - mv .coverage .coverage.cext
+
+after_success:
+  - codecov -F noext -f .coverage.noext
+  - codecov -F cext -f .coverage.cext