34 lines
686 B
INI
34 lines
686 B
INI
[tox]
|
|
envlist = py27, py27-tornado23, py27-tornado31, docs, flake8
|
|
|
|
[testenv]
|
|
sitepackages = true
|
|
commands = nosetests -v --with-xunit --xunit-file=xunit-{envname}.xml --with-coverage --cover-package=mopidy
|
|
deps =
|
|
coverage
|
|
mock
|
|
nose
|
|
|
|
[testenv:py27-tornado23]
|
|
commands = nosetests -v tests/http
|
|
deps =
|
|
{[testenv]deps}
|
|
tornado==2.3
|
|
|
|
[testenv:py27-tornado31]
|
|
commands = nosetests -v tests/http
|
|
deps =
|
|
{[testenv]deps}
|
|
tornado==3.1.1
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/docs/requirements.txt
|
|
changedir = docs
|
|
commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
|
|
|
[testenv:flake8]
|
|
deps =
|
|
flake8
|
|
flake8-import-order
|
|
commands = flake8
|