Commit 1df5844e by Tom Christie

Merge pull request #3208 from treyhunner/add-codecov

Report test coverage via Codecov
parents 7f80a2e0 34c74b89
...@@ -41,3 +41,7 @@ install: ...@@ -41,3 +41,7 @@ install:
script: script:
- tox -e $TOX_ENV - tox -e $TOX_ENV
after_success:
- pip install codecov
- codecov
# [Django REST framework][docs] # [Django REST framework][docs]
[![build-status-image]][travis] [![build-status-image]][travis]
[![coverage-status-image]][codecov]
[![pypi-version]][pypi] [![pypi-version]][pypi]
**Awesome web-browsable Web APIs.** **Awesome web-browsable Web APIs.**
...@@ -159,6 +160,8 @@ Send a description of the issue via email to [rest-framework-security@googlegrou ...@@ -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 [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 [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-version]: https://img.shields.io/pypi/v/djangorestframework.svg
[pypi]: https://pypi.python.org/pypi/djangorestframework [pypi]: https://pypi.python.org/pypi/djangorestframework
[twitter]: https://twitter.com/_tomchristie [twitter]: https://twitter.com/_tomchristie
......
...@@ -9,7 +9,7 @@ envlist = ...@@ -9,7 +9,7 @@ envlist =
{py27,py32,py33,py34}-django{17,18,master} {py27,py32,py33,py34}-django{17,18,master}
[testenv] [testenv]
commands = ./runtests.py --fast {posargs} commands = ./runtests.py --fast {posargs} --coverage
setenv = setenv =
PYTHONDONTWRITEBYTECODE=1 PYTHONDONTWRITEBYTECODE=1
deps = deps =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment