Skip to content

Commit

Permalink
Merge pull request mozilla#20 from pmclanahan/add-coveralls
Browse files Browse the repository at this point in the history
Add coveralls.io support.
  • Loading branch information
pmac committed Aug 28, 2013
2 parents 0800e8b + b2a7b79 commit 949c49d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveragerc
@@ -0,0 +1,2 @@
[run]
source = basket
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,4 +2,5 @@
*.sw[po]
*~
*.egg-info
.coverage
dist
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -4,9 +4,13 @@ python:
- "2.7"
before_script:
- flake8 --ignore=E121,E123,E124,E125,E126,E127,E128,E501 basket
script: python setup.py test
script: coverage run setup.py test
install:
- pip install -r test-requirements.txt --use-mirrors
after_success:
# Report coverage results to coveralls.io
- pip install coveralls --use-mirrors
- coveralls
notifications:
irc:
channels:
Expand Down
2 changes: 2 additions & 0 deletions README.rst
Expand Up @@ -11,6 +11,8 @@ update_user. View the basket documentation_ for details.

.. image:: https://travis-ci.org/mozilla/basket-client.png
:target: https://travis-ci.org/mozilla/basket-client
.. image:: https://coveralls.io/repos/mozilla/basket-client/badge.png?branch=master
:target: https://coveralls.io/r/mozilla/basket-client
.. image:: https://pypip.in/v/basket-client/badge.png
:target: https://crate.io/packages/basket-client

Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Expand Up @@ -2,3 +2,4 @@ mock
requests
flake8
unittest2
coverage

0 comments on commit 949c49d

Please sign in to comment.