diff --git a/.travis.yml b/.travis.yml index c653aa83a..87db5e046 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,3 +41,7 @@ install: script: - tox -e $TOX_ENV + +after_success: + - pip install codecov + - codecov diff --git a/README.md b/README.md index 8ba866808..5dd403355 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tox.ini b/tox.ini index 84f406246..2adfe43ed 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =