mopidy/tox.ini
2018-09-19 22:26:36 +02:00

35 lines
739 B
INI

[tox]
envlist = py27, docs, flake8
[testenv]
sitepackages = true
commands =
pytest \
--basetemp={envtmpdir} \
--cov=mopidy --cov-report=term-missing \
-n 4 \
{posargs}
deps =
mock
pytest>=3.3.0
pytest-cov
pytest-xdist
responses
[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
changedir = docs
commands = python -m sphinx -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:flake8]
deps =
flake8
flake8-import-order
pep8-naming
commands = flake8 --show-source --statistics mopidy tests
[testenv:linkcheck]
deps = -r{toxinidir}/docs/requirements.txt
changedir = docs
commands = python -m sphinx -b linkcheck -d {envtmpdir}/doctrees . {envtmpdir}/html