Browse Source

Enable codecov.

Jelmer Vernooij 8 years ago
parent
commit
5a1e982117
1 changed files with 6 additions and 3 deletions
  1. 6 3
      .travis.yml

+ 6 - 3
.travis.yml

@@ -28,11 +28,14 @@ cache:
 script:
 script:
   - pip install pip --upgrade
   - pip install pip --upgrade
   - pip install $TEST_REQUIRE
   - pip install $TEST_REQUIRE
+  - pip install coverage codecov
 
 
   # Test without c extensions
   # Test without c extensions
-  - python -m $TEST_RUNNER dulwich.tests.test_suite
+  - python -m coverage run -p -m $TEST_RUNNER dulwich.tests.test_suite
 
 
   # Test with c extensions
   # Test with c extensions
   - python setup.py build_ext -i
   - python setup.py build_ext -i
-  - python -m $TEST_RUNNER dulwich.tests.test_suite
-
+  - python -m coverage run -p -m $TEST_RUNNER dulwich.tests.test_suite
+after_success:
+  - python -m coverage combine
+  - codecov