]> 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)
committerErick Wilder <erickwilder@gmail.com>
Thu, 6 Aug 2015 21:07:14 +0000 (18:07 -0300)
 Conflicts:
.travis.yml

.travis.yml
Makefile

index 94425a607a8a42a786b5fcf757418cd68caacfeb..583a128df6483d1ce867dc816a807c7fd3520620 100644 (file)
@@ -8,10 +8,15 @@ python:
 
 install:
   - pip install --upgrade pip
-  - pip install pytest
+  - pip install pytest pytest-cov
   - pip install --editable .
 
-script: make test
+# Use travis docker infrastructure for greater speed
+sudo: false
+
+script:
+  - make test-cov
+  - bash <(curl -s https://codecov.io/bash)
 
 notifications:
   email: false
index 5bb68a9a96c7a447970e3b23aea40dcc74e8aa26..f038b1da568406afa18c9f705b000333b0bf68c4 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