Skip to content

Commit

Permalink
Merge pull request #61 from jcassee/feature/coverage
Browse files Browse the repository at this point in the history
Calculate coverage and send to Coveralls.io
  • Loading branch information
bittner committed May 18, 2015
2 parents bde02a3 + fff72f7 commit 15a5b18
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
source = analytical
omit = analytical/tests/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*.geany
/.idea
/.tox
/.coverage

/build
/dist
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
install:
- pip install tox
- pip install coveralls tox
script:
- tox
env: # generate list with: $ tox -l | xargs -I ITEM echo " - TOXENV="ITEM
Expand Down
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
django-analytical |latest-version|
==================================

|travis-ci| |downloads| |license|
|travis-ci| |coveralls| |downloads| |license|

The django-analytical application integrates analytics services into a
Django_ project.
Expand Down Expand Up @@ -29,6 +29,9 @@ an asynchronous version of the Javascript code if possible.
.. |travis-ci| image:: https://travis-ci.org/jcassee/django-analytical.svg
:alt: Build status
:target: https://travis-ci.org/jcassee/django-analytical
.. |coveralls| image:: https://coveralls.io/repos/jcassee/django-analytical/badge.svg
:alt: Test coverage
:target: https://coveralls.io/r/jcassee/django-analytical
.. |downloads| image:: https://img.shields.io/pypi/dm/django-analytical.svg
:alt: Monthly downloads from PyPI
:target: https://pypi.python.org/pypi/django-analytical
Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ envlist =
py{33,34}-django{15,16,17,18},

[testenv]
commands = python -Wall setup.py test
commands =
coverage run setup.py test
coveralls
basepython =
py26: python2.6
py27: python2.7
py33: python3.3
py34: python3.4
deps =
coveralls
django14: Django>=1.4,<1.5
django15: Django>=1.5,<1.6
django16: Django>=1.6,<1.7
django17: Django>=1.7,<1.8
django18: Django>=1.8,<1.9
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH

0 comments on commit 15a5b18

Please sign in to comment.