mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 11:04:02 +03:00
Merge pull request #3208 from treyhunner/add-codecov
Report test coverage via Codecov
This commit is contained in:
commit
1df5844e67
|
@ -41,3 +41,7 @@ install:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- tox -e $TOX_ENV
|
- tox -e $TOX_ENV
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- pip install codecov
|
||||||
|
- codecov
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# [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
|
||||||
|
|
||||||
[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
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user