Merge pull request #882 from singingwolfboy/coveralls

Integrate coveralls.io
badge-v2
Eric Holscher 2014-08-12 17:35:00 -07:00
commit e47a41e461
3 changed files with 12 additions and 5 deletions

View File

@ -2,8 +2,11 @@ language: python
python:
- "2.7"
install:
- pip install flake8
- pip install --allow-all-external --allow-unverified bzr --allow-unverified launchpadlib --allow-unverified lazr.authentication -r pip_requirements.txt
- pip install flake8
- pip install --allow-all-external --allow-unverified bzr --allow-unverified launchpadlib --allow-unverified lazr.authentication -r pip_requirements.txt
- pip install coveralls
script:
#- flake8 `find . -iname "*.py" -not -ipath "*migration*"`
- ./runtests.sh
after_success:
- coveralls

View File

@ -1,7 +1,7 @@
Welcome to Read The Docs
========================
|build-status| |docs|
|build-status| |coverage-status| |docs|
Purpose
-------
@ -53,10 +53,14 @@ when you push to Github.
.. |build-status| image:: https://travis-ci.org/rtfd/readthedocs.org.png?branch=master
:alt: status
:alt: build status
:scale: 100%
:target: https://travis-ci.org/rtfd/readthedocs.org
.. |coverage-status| image:: https://coveralls.io/repos/rtfd/readthedocs.org/badge.png
:alt: coverage status
:target: https://coveralls.io/r/readthedocs.org
.. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest
:alt: status
:scale: 100%

View File

@ -2,7 +2,7 @@ cd readthedocs
rm -rf rtd_tests/builds/
export PYTHONPATH=`pwd`:$PYTHONPATH
export DJANGO_SETTINGS_MODULE=settings.test
py.test $1
coverage run py.test $1
exit=$?
cd -
exit $exit