From: Lasse Schuirmann Date: Tue, 4 Aug 2015 09:02:14 +0000 (+0200) Subject: travis: Submit coverage to codecov X-Git-Tag: 2.1.1~8^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd2bef84dce7d3fcb0baa5001d260658eccbb02d;p=thirdparty%2Fbabel.git travis: Submit coverage to codecov Conflicts: .travis.yml --- diff --git a/.travis.yml b/.travis.yml index 94425a60..583a128d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index 5bb68a9a..f038b1da 100644 --- 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