From c0104e0104e9de47267cad93870739987eed533d Mon Sep 17 00:00:00 2001 From: Damien Nozay Date: Sun, 10 Jan 2016 11:41:00 -0800 Subject: [PATCH] Use codecov and coveralls. The intent is that if code coverage report are combined, then parallelizing with tox-travis may make sense. Using both tools as I want to see which one is better. --- .travis.yml | 5 ++++- README.md | 2 ++ tox.ini | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5e23c47..b86a0b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,9 @@ language: python python: - "2.7" install: - - pip install tox + - pip install tox codecov coveralls script: - tox +after_success: + - codecov + - coveralls diff --git a/README.md b/README.md index 7a8ea35..956e630 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ [![Build Status](https://travis-ci.org/xmlrunner/unittest-xml-reporting.svg?branch=master)](https://travis-ci.org/xmlrunner/unittest-xml-reporting) [![Code Health](https://landscape.io/github/xmlrunner/unittest-xml-reporting/master/landscape.png)](https://landscape.io/github/xmlrunner/unittest-xml-reporting/master) +[![codecov.io Coverage Status](https://codecov.io/github/xmlrunner/unittest-xml-reporting/coverage.svg?branch=master)](https://codecov.io/github/xmlrunner/unittest-xml-reporting?branch=master) +[![Coveralls Coverage Status](https://coveralls.io/repos/xmlrunner/unittest-xml-reporting/badge.svg?branch=coveralls&service=github)](https://coveralls.io/github/xmlrunner/unittest-xml-reporting?branch=coveralls) [![Requirements Status](https://requires.io/github/xmlrunner/unittest-xml-reporting/requirements.svg?branch=master)](https://requires.io/github/xmlrunner/unittest-xml-reporting/requirements/?branch=master) # unittest-xml-reporting diff --git a/tox.ini b/tox.ini index e8d237b..3ec7807 100644 --- a/tox.ini +++ b/tox.ini @@ -4,11 +4,16 @@ envlist = begin,py{26,27,33,34},py27-django{lts,curr},end,quality [testenv] deps = coverage + codecov>=1.4.0 + coveralls djangolts: django==1.8.7 djangocurr: django==1.9 commands = coverage run --append setup.py test coverage report --omit='.tox/*' + codecov -e TOXENV + coveralls +passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT [testenv:begin] commands = coverage erase