Skip to content

Commit

Permalink
Measure coverage in coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Feb 1, 2014
1 parent d81f2a9 commit 223e274
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ before_install:
lsb_release -a
sudo pip install tox
script: TOXENV=py$(echo $TRAVIS_PYTHON_VERSION | tr -d .) tox -v
after_success:
- .tox/$TRAVIS_PYTHON_VERSION-$DJANGO_VERSION/bin/coveralls
1 change: 1 addition & 0 deletions requirements/test-ci.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage>=3.0
coveralls
redis
#pymongo
#SQLAlchemy
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ deps = -r{toxinidir}/requirements/default.txt
-r{toxinidir}/requirements/test-ci.txt
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
pip install anyjson
nosetests -vd celery.tests \
--with-xunit \
--xunit-file="{toxinidir}/nosetests.xml"
nosetests -vd celery.tests --with-xunit \
--xunit-file="{toxinidir}/nosetests.xml" \
--cover3-html-dir={toxinidir}/cover \
--cover3-xml-file={toxinidir}/coverage.xml

[testenv:py27]
basepython = python2.7
Expand Down

0 comments on commit 223e274

Please sign in to comment.