Test with multiple versions of tornado. See #798

This commit is contained in:
dz0ny 2014-07-28 20:48:06 +02:00
parent 5daa95cae8
commit 6367b83735
2 changed files with 14 additions and 2 deletions

View File

@ -5,6 +5,8 @@ python:
env: env:
- TOX_ENV=py27 - TOX_ENV=py27
- TOX_ENV=tornado2.3
- TOX_ENV=tornado3.2
- TOX_ENV=docs - TOX_ENV=docs
- TOX_ENV=flake8 - TOX_ENV=flake8

14
tox.ini
View File

@ -1,13 +1,23 @@
[tox] [tox]
envlist = py27, docs, flake8 envlist = tornado2.3, tornado3.2, py27, docs, flake8
[testenv] [testenv]
sitepackages = true sitepackages = true
commands = nosetests -v --with-xunit --xunit-file=xunit-{envname}.xml --with-coverage --cover-package=mopidy
deps = deps =
coverage coverage
mock mock
nose nose
commands = nosetests -v --with-xunit --xunit-file=xunit-{envname}.xml --with-coverage --cover-package=mopidy
[testenv:tornado2.3]
commands = nosetests -v tests/http
deps = {[testenv]deps}
tornado==2.3
[testenv:tornado3.2]
commands = nosetests -v tests/http
deps = {[testenv]deps}
tornado==3.1
[testenv:docs] [testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt deps = -r{toxinidir}/docs/requirements.txt