1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
[tox]
envlist = py27,py34,doc
[testenv]
setenv=LD_LIBRARY_PATH={envdir}/lib
deps=
docutils>=0.9
pytest>=2.8
mock>=1.0b1
coverage
hypothesis
commands=
py.test {posargs:--junitxml={envname}-tests.xml -rsx}
coverage run --timid --branch -m py.test {posargs:--junitxml={envname}-tests.xml}
coverage report --include="{envsitepackagesdir}/pyudev/*"
coverage html --include="{envsitepackagesdir}/pyudev/*"
[testenv:doc]
downloadcache={toxworkdir}/_download
deps=
mock>=1.0b1
pytest>=2.8
sphinx>=1.0.7
commands=
sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees doc {envtmpdir}/linkcheck
sphinx-build -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|