Skip to content

Commit

Permalink
add coveralls support so I get a badge
Browse files Browse the repository at this point in the history
  • Loading branch information
crccheck committed Mar 19, 2015
1 parent f2a4ea4 commit 3e111df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ env:
- TOX_ENV=django18-py27
- TOX_ENV=django18-py33
- TOX_ENV=django18-py34
install: "pip install tox"
- TOX_ENV=coveralls-django17-py27
install: pip install tox coveralls
script: tox -e $TOX_ENV
after_success: coveralls
sudo: false
10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,26 @@ envlist =
django15-{py26,py27},
django16-{py26,py27,py33},
django{17,18}-{py27,py33,py34},
# run one of the tests again but with coverage
coveralls-django17-py27,
skipsdist = True

[testenv]
setenv =
PYTHONPATH = {toxinidir}
commands = {envpython} example_project/manage.py test django_object_actions
commands =
{envpython} example_project/manage.py test django_object_actions
deps =
dj_database_url==0.3.0
django-extensions==1.4.6
factory-boy==2.4.1
coveralls: coverage
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.8b2

[testenv:coveralls-django17-py27]
commands =
coverage run example_project/manage.py test django_object_actions

0 comments on commit 3e111df

Please sign in to comment.