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:
parent
d069c3e311
commit
815b490206
7
.gitignore
vendored
7
.gitignore
vendored
@ -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
19
tox.ini
Normal 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/
|
||||
Loading…
Reference in New Issue
Block a user