Run with show source so we can see the context in travis errors. Add stats for number of errors. And limit ourselves to mopidy and tests as I happen to have a tmp folder with non-conforming proof of concept code that I don't want this to check.
34 lines
726 B
INI
34 lines
726 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 --show-source --statistics mopidy tests
|