Skip to content

Commit c33018a

Browse files
committed
Merge pull request #117 from xmlrunner/cov
Use codecov and coveralls.
2 parents e0e7152 + c0104e0 commit c33018a

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ language: python
33
python:
44
- "2.7"
55
install:
6-
- pip install tox
6+
- pip install tox codecov coveralls
77
script:
88
- tox
9+
after_success:
10+
- codecov
11+
- coveralls

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
[![Build Status](https://travis-ci.org/xmlrunner/unittest-xml-reporting.svg?branch=master)](https://travis-ci.org/xmlrunner/unittest-xml-reporting)
77
[![Code Health](https://landscape.io/github/xmlrunner/unittest-xml-reporting/master/landscape.png)](https://landscape.io/github/xmlrunner/unittest-xml-reporting/master)
8+
[![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)
9+
[![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)
810
[![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)
911

1012
# unittest-xml-reporting

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ envlist = begin,py{26,27,33,34},py27-django{lts,curr},end,quality
44
[testenv]
55
deps =
66
coverage
7+
codecov>=1.4.0
8+
coveralls
79
djangolts: django==1.8.7
810
djangocurr: django==1.9
911
commands =
1012
coverage run --append setup.py test
1113
coverage report --omit='.tox/*'
14+
codecov -e TOXENV
15+
coveralls
16+
passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT
1217

1318
[testenv:begin]
1419
commands = coverage erase

0 commit comments

Comments
 (0)