Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
un33k committed Apr 21, 2015
1 parent a635707 commit 0f4d98f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ install:
- pip install -e .
- pip install pep8
- pip install https://github.com/un33k/pyflakes/tarball/master
- pip install coveralls

before_script:
- "pep8 --exclude=migrations --ignore=E501,E225,E128 ."
Expand All @@ -37,4 +38,8 @@ matrix:
- python: "2.6"
env: DJANGO="django==1.8"

script: python manage.py test
script: coverage run --source=ipware manage.py test

after_success:
coveralls

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Django IPware
[![build-status-image-travis]][travis]
[![build-status-image-fury]][fury]
[![build-status-image-pypi]][pypi]
[![build-status-image-coverage]][coverage]


Overview
Expand Down Expand Up @@ -134,3 +135,5 @@ Released under a ([BSD](LICENSE.md)) license.
[build-status-image-pypi]: https://pypip.in/d/django-ipware/badge.png
[pypi]: https://crate.io/packages/django-ipware?version=latest

[build-status-image-coverage]: https://coveralls.io/repos/un33k/django-ipware/badge.svg?branch=master
[coverage]: https://coveralls.io/r/un33k/django-ipware?branch=master

0 comments on commit 0f4d98f

Please sign in to comment.