瀏覽代碼

Enable codecov.

Jelmer Vernooij 8 年之前
父節點
當前提交
5a1e982117
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      .travis.yml

+ 6 - 3
.travis.yml

@@ -28,11 +28,14 @@ cache:
 script:
   - pip install pip --upgrade
   - pip install $TEST_REQUIRE
+  - pip install coverage codecov
 
   # 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
   - 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