tox: Add tox config file

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.
This commit is contained in:
Stein Magnus Jodal 2014-02-17 12:51:02 +01:00
parent d069c3e311
commit 815b490206
2 changed files with 23 additions and 3 deletions

7
.gitignore vendored
View File

@ -1,6 +1,8 @@
*.egg-info
*.orig
*.pyc
*.swp
*~
.coverage
.idea
.noseids
@ -11,9 +13,8 @@ cover/
coverage.xml
dist/
docs/_build/
js/test/lib/
mopidy.log*
node_modules/
nosetests.xml
*~
*.orig
js/test/lib/
xunit-*.xml

19
tox.ini Normal file
View File

@ -0,0 +1,19 @@
[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/