From bd2bef84dce7d3fcb0baa5001d260658eccbb02d Mon Sep 17 00:00:00 2001 From: Lasse Schuirmann Date: Tue, 4 Aug 2015 11:02:14 +0200 Subject: [PATCH] travis: Submit coverage to codecov Conflicts: .travis.yml --- .travis.yml | 9 +++++++-- Makefile | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) 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 -- 2.47.3