This allows for testing across multiple environments, including Python 3 in the not too distant future. The instant bonus is that this allows for testing the docs build at Travis so I don't make more releases like 0.18.2 with broken docs.
20 lines
455 B
INI
20 lines
455 B
INI
[tox]
|
|
envlist = py27, docs, flake8
|
|
|
|
[testenv]
|
|
sitepackages = true
|
|
deps =
|
|
coverage
|
|
mock
|
|
nose
|
|
commands = nosetests -v --with-xunit --xunit-file=xunit-{envname}.xml --with-coverage --cover-package=mopidy
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/docs/requirements.txt
|
|
changedir = docs
|
|
commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
|
|
|
[testenv:flake8]
|
|
deps = flake8
|
|
commands = flake8 docs/ fabfile.py mopidy/ setup.py tests/
|