瀏覽代碼

Separately report coverage for c extension tests and non-c extension tests.

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

+ 6 - 4
.travis.yml

@@ -27,12 +27,14 @@ install:
 
 script:
   # Test without c extensions
-  - python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite
+  - python -m coverage run --source=dulwich -m unittest dulwich.tests.test_suite
+  - mv .coverage .coverage.unit-noext
 
   # Test with c extensions
   - python setup.py build_ext -i
-  - python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite
+  - python -m coverage run --source=dulwich -m unittest dulwich.tests.test_suite
+  - mv .coverage .coverage.unit-cext
 
 after_success:
-  - python -m coverage combine
-  - codecov
+  - codecov -F unit-noext -f .coverage.unit-noext
+  - codecov -F unit-cext -f .coverage.unit-cext