Merge add-tox-file-7228-4: Add a tox.ini configuration file

Authors: herrwolfe, adiroiban, hawkowl
Reviewers: glyph, herrwolfe, adiroiban
Fixes: #7228

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@45685 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
This commit is contained in:
hawkowl 2015-09-14 03:54:57 +00:00
parent effcee1d25
commit bdb668593b
4 changed files with 58 additions and 0 deletions

10
.coveragerc Normal file
View File

@ -0,0 +1,10 @@
[run]
include =
twisted/*
bin/*
admin/*
branch = True
[report]
precision = 2
ignore_errors = True

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ htmlcov/
.coverage
*~
*.lock
apidocs/

47
tox.ini Normal file
View File

@ -0,0 +1,47 @@
; 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]
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 =
py27-{tests,nomodules}: {toxinidir}/bin/trial {posargs:twisted}
{py33,py34}-{tests,nomodules}: {toxinidir}/admin/run-python3-tests {posargs:}
twistedchecker: twistedchecker {posargs:twisted}
pyflakes: pyflakes {toxinidir}/{posargs:twisted}
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

View File