2010-07-20 10:41:36 +00:00
|
|
|
[tox]
|
2011-08-28 15:30:44 +00:00
|
|
|
envlist = py24,py25,py26,py27,pypy
|
2010-07-20 10:41:36 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
distribute = True
|
|
|
|
sitepackages = False
|
|
|
|
commands = nosetests
|
|
|
|
|
2011-09-13 15:14:41 +00:00
|
|
|
[testenv:py32]
|
2011-09-13 16:03:43 +00:00
|
|
|
recreate = True
|
2011-09-13 15:14:41 +00:00
|
|
|
basepython = python3.2
|
|
|
|
changedir = .tox
|
|
|
|
commands = pip -E {envdir} install -r ../requirements/default.txt
|
|
|
|
pip -E {envdir} install -r ../requirements/test-py3k.txt
|
2011-09-13 16:03:43 +00:00
|
|
|
nosetests -vd kombu.tests \
|
|
|
|
--with-coverage3 \
|
|
|
|
--cover3-branch \
|
|
|
|
--cover3-xml \
|
|
|
|
--cover3-xml-file=coverage.xml \
|
|
|
|
--cover3-html \
|
|
|
|
--cover3-package=kombu \
|
|
|
|
--cover3-exclude="kombu kombu.utils.* \
|
|
|
|
kombu.transport.pypika \
|
|
|
|
kombu.transport.pycouchdb \
|
|
|
|
kombu.transport.mongodb \
|
|
|
|
kombu.transport.beanstalk" \
|
|
|
|
--with-xunit \
|
|
|
|
--xunit-file=nosetests.xml
|
|
|
|
|
2011-09-13 15:14:41 +00:00
|
|
|
|
|
|
|
[testenv:py27]
|
|
|
|
basepython = python2.7
|
|
|
|
commands = pip -E {envdir} install -r requirements/default.txt
|
|
|
|
pip -E {envdir} install -r requirements/test.txt
|
2010-07-20 10:41:36 +00:00
|
|
|
nosetests --with-xunit --xunit-file=nosetests.xml \
|
|
|
|
--with-coverage3 --cover3-xml \
|
|
|
|
--cover3-xml-file=coverage.xml
|
|
|
|
|
2011-09-13 15:14:41 +00:00
|
|
|
[testenv:py26]
|
|
|
|
basepython = python2.6
|
|
|
|
commands = pip -E {envdir} install -r requirements/default.txt
|
|
|
|
pip -E {envdir} install -r requirements/test.txt
|
2010-07-20 10:41:36 +00:00
|
|
|
nosetests --with-xunit --xunit-file=nosetests.xml \
|
|
|
|
--with-coverage3 --cover3-xml \
|
|
|
|
--cover3-xml-file=coverage.xml
|
|
|
|
|
2011-09-13 15:14:41 +00:00
|
|
|
[testenv:py25]
|
|
|
|
basepython = python2.5
|
|
|
|
commands = pip -E {envdir} install -r requirements/default.txt
|
|
|
|
pip -E {envdir} install -r requirements/test.txt
|
2010-07-20 10:41:36 +00:00
|
|
|
nosetests --with-xunit --xunit-file=nosetests.xml \
|
|
|
|
--with-coverage3 --cover3-xml \
|
|
|
|
--cover3-xml-file=coverage.xml
|
|
|
|
|
2011-09-13 15:14:41 +00:00
|
|
|
|
|
|
|
[testenv:py24]
|
|
|
|
basepython = python2.4
|
|
|
|
commands = pip -E {envdir} install -r requirements/default.txt
|
|
|
|
pip -E {envdir} install -r requirements/py24.txt
|
|
|
|
pip -E {envdir} install -r requirements/test.txt
|
2010-07-20 10:41:36 +00:00
|
|
|
nosetests --with-xunit --xunit-file=nosetests.xml \
|
|
|
|
--with-coverage3 --cover3-xml \
|
|
|
|
--cover3-xml-file=coverage.xml
|
2011-08-28 15:30:44 +00:00
|
|
|
|
2011-09-13 15:14:41 +00:00
|
|
|
|
2011-08-28 15:30:44 +00:00
|
|
|
[testenv:pypy]
|
|
|
|
basepython = pypy
|
2011-09-13 15:14:41 +00:00
|
|
|
commands = pip -E {envdir} install -r requirements/default.txt
|
|
|
|
pip -E {envdir} install -r requirements/test-pypy.txt
|
2011-08-28 15:30:44 +00:00
|
|
|
nosetests --with-xunit --xunit-file=nosetests.xml \
|
|
|
|
--with-coverage3 --cover3-xml \
|
|
|
|
--cover3-xml-file=coverage.xml
|