Skip to content

Commit

Permalink
Simplify test/coverage commands. Fix coveralls to only send out celer…
Browse files Browse the repository at this point in the history
…y's coverage.
  • Loading branch information
ionelmc committed Feb 2, 2014
1 parent 51beb51 commit 46c5846
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 25 deletions.
5 changes: 4 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[run]
parallel = 1
branch = 1
cover_pylib = 0
omit = celery.utils.debug,celery.tests.*,celery.bin.graph
[report]
omit = */python?.?/*,*/site-packages/*
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
[nosetests]
where = celery/tests
cover3-branch = 1
cover3-html = 1
cover3-package = celery
cover3-exclude = celery.utils.debug,celery.tests.*,celery.bin.graph

[build_sphinx]
source-dir = docs/
Expand Down
25 changes: 5 additions & 20 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,51 +16,36 @@ deps = -r{toxinidir}/requirements/default.txt
-r{toxinidir}/requirements/test3.txt
-r{toxinidir}/requirements/test-ci.txt
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
pip install anyjson
nosetests celery.tests --with-coverage []
coverage combine
coverage report
nosetests celery.tests --with-coverage --cover-inclusive --cover-erase []

[testenv:3.2]
basepython = python3.2
deps = -r{toxinidir}/requirements/default.txt
-r{toxinidir}/requirements/test3.txt
-r{toxinidir}/requirements/test-ci.txt
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
pip install anyjson
nosetests celery.tests --with-coverage []
coverage combine
coverage report
nosetests celery.tests --with-coverage --cover-inclusive --cover-erase []

[testenv:2.7]
basepython = python2.7
deps = -r{toxinidir}/requirements/default.txt
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/test-ci.txt
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
pip install anyjson
nosetests --with-coverage []
coverage combine
coverage report
nosetests --with-coverage --cover-inclusive --cover-erase []

[testenv:2.6]
basepython = python2.6
deps = -r{toxinidir}/requirements/default.txt
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/test-ci.txt
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
pip install anyjson
nosetests --with-coverage []
coverage combine
coverage report
nosetests --with-coverage --cover-inclusive --cover-erase []

[testenv:pypy]
basepython = pypy
deps = -r{toxinidir}/requirements/default.txt
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/test-ci.txt
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
pip install anyjson
nosetests --with-coverage []
coverage combine
coverage report
nosetests --with-coverage --cover-inclusive --cover-erase []

0 comments on commit 46c5846

Please sign in to comment.