]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
travis: Submit coverage to codecov
authorLasse Schuirmann <lasse.schuirmann@gmail.com>
Tue, 4 Aug 2015 09:02:14 +0000 (11:02 +0200)
committerLasse Schuirmann <lasse.schuirmann@gmail.com>
Tue, 4 Aug 2015 09:43:31 +0000 (11:43 +0200)
.travis.yml
Makefile

index a876247cccfc14d0529b71ca68f5ca654967d2af..cda41362d17d181ae98f8ece87934591231aae1c 100644 (file)
@@ -9,13 +9,15 @@ python:
 
 install:
   - pip install --upgrade pip
-  - pip install pytest
+  - pip install pytest pytest-cov
   - pip install --editable .
 
 # Use travis docker infrastructure for greater speed
 sudo: false
 
-script: make test
+script:
+  - make test-cov
+  - bash <(curl -s https://codecov.io/bash)
 
 notifications:
   email: false
index c0adaa10d14993c6e398f95c01cb7d6ade2914a1..ea4d75f91ff499849fa064eca3eb1705560f1def 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
 test: import-cldr
        @PYTHONWARNINGS=default py.test
 
+test-cov: import-cldr
+       @PYTHONWARNINGS=default py.test --cov=babel
+
 test-env:
        @virtualenv test-env
        @test-env/bin/pip install pytest