소스 검색

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