2015-09-14 06:54:57 +03:00
|
|
|
; tox configuration file for running tests similar to buildbot builders.
|
|
|
|
|
|
|
|
[tox]
|
|
|
|
toxworkdir=build/
|
|
|
|
envlist=
|
|
|
|
{py27,py33,py34}-{tests,nomodules}
|
|
|
|
{py27,py33,py34}-coverage
|
|
|
|
pyflakes,twistedchecker,apidocs,narrativedocs
|
|
|
|
skipsdist=True
|
|
|
|
|
|
|
|
|
|
|
|
[testenv]
|
2015-11-07 02:09:38 +02:00
|
|
|
changedir={envtmpdir}
|
2015-09-14 06:54:57 +03:00
|
|
|
skip_install=True
|
|
|
|
deps =
|
|
|
|
; zope.interface is love, zope.interface is life
|
|
|
|
zope.interface
|
|
|
|
|
|
|
|
; Some relatively standard dependencies that we want to have
|
|
|
|
; We cannot use extras here, because it is not supported on Py3
|
|
|
|
{tests,coverage}: pyopenssl
|
|
|
|
{tests,coverage}: service_identity
|
|
|
|
{tests,coverage}: pycrypto
|
|
|
|
|
|
|
|
coverage: coverage
|
|
|
|
|
|
|
|
; Code quality checkers
|
|
|
|
pyflakes: pyflakes
|
|
|
|
twistedchecker: twistedchecker
|
|
|
|
|
|
|
|
; Documentation
|
|
|
|
apidocs: pydoctor
|
|
|
|
narrativedocs: sphinx
|
|
|
|
|
|
|
|
commands =
|
2015-10-26 12:09:35 +02:00
|
|
|
py27-{tests,nomodules}: python {toxinidir}/bin/trial {posargs:twisted}
|
|
|
|
{py33,py34}-{tests,nomodules}: python {toxinidir}/admin/run-python3-tests {posargs:}
|
2015-09-14 06:54:57 +03:00
|
|
|
|
|
|
|
twistedchecker: twistedchecker {posargs:twisted}
|
2015-11-07 02:09:38 +02:00
|
|
|
pyflakes: pyflakes {posargs:twisted}
|
2015-09-14 06:54:57 +03:00
|
|
|
|
|
|
|
apidocs: {toxinidir}/bin/admin/build-apidocs {toxinidir} apidocs
|
|
|
|
narrativedocs: sphinx-build -aW -b html -d {toxinidir}/docs/_build docs {toxinidir}/docs/_build/
|
|
|
|
|
|
|
|
coverage: coverage erase
|
|
|
|
py27-coverage: coverage run {toxinidir}/bin/trial --reporter=bwverbose {posargs:twisted}
|
|
|
|
{py33,py34}-coverage: coverage run {toxinidir}/admin/run-python3-tests --reporter=bwverbose {posargs:}
|
|
|
|
coverage: coverage report
|
2015-11-07 02:09:38 +02:00
|
|
|
|
|
|
|
[testenv:twistedchecker]
|
|
|
|
changedir={toxinidir}
|
|
|
|
[testenv:pyflakes]
|
|
|
|
changedir={toxinidir}
|