Merge pull request #3208 from treyhunner/add-codecov

Report test coverage via Codecov
This commit is contained in:
Tom Christie 2015-08-03 17:13:46 +01:00
commit 1df5844e67
3 changed files with 8 additions and 1 deletions

View File

@ -41,3 +41,7 @@ install:
script:
- tox -e $TOX_ENV
after_success:
- pip install codecov
- codecov

View File

@ -1,6 +1,7 @@
# [Django REST framework][docs]
[![build-status-image]][travis]
[![coverage-status-image]][codecov]
[![pypi-version]][pypi]
**Awesome web-browsable Web APIs.**
@ -159,6 +160,8 @@ Send a description of the issue via email to [rest-framework-security@googlegrou
[build-status-image]: https://secure.travis-ci.org/tomchristie/django-rest-framework.svg?branch=master
[travis]: http://travis-ci.org/tomchristie/django-rest-framework?branch=master
[coverage-status-image]: http://codecov.io/github/tomchristie/django-rest-framework/coverage.svg?branch=master
[codecov]: http://codecov.io/github/tomchristie/django-rest-framework?branch=master
[pypi-version]: https://img.shields.io/pypi/v/djangorestframework.svg
[pypi]: https://pypi.python.org/pypi/djangorestframework
[twitter]: https://twitter.com/_tomchristie

View File

@ -9,7 +9,7 @@ envlist =
{py27,py32,py33,py34}-django{17,18,master}
[testenv]
commands = ./runtests.py --fast {posargs}
commands = ./runtests.py --fast {posargs} --coverage
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =