forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
79 lines (65 loc) · 2.6 KB
/
tox.ini
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
; tox configuration file for running tests similar to buildbot builders.
[tox]
skip_missing_interpreters=True
toxworkdir=build/
envlist=
{py27,py33,py34,py35}-{tests,nomodules,coverage}-posix
py27-{tests,nomodules,coverage}-windows,
pyflakes,twistedchecker,apidocs,narrativedocs,topfile
[testenv]
changedir={envtmpdir}
deps =
; Some relatively standard dependencies that we want to have
; We cannot use extras here, because it is not supported on Py3
{tests,coverage}: cryptography >= 0.9
{tests,coverage}: pyopenssl >= 0.13
{tests,coverage}: service_identity
{tests,coverage}: idna >= 0.6
{tests,coverage}: pyserial
{tests,coverage}: python-subunit
{tests,coverage}: pycrypto
{tests,coverage}: appdirs
{tests,coverage}: h2
{tests,coverage}: priority
py27-{tests,coverage}-posix: pysqlite
py27-{tests,coverage}: soappy
windows: pypiwin32
coverage: coverage
; Code quality checkers
pyflakes: pyflakes
twistedchecker: twistedchecker
; Documentation
apidocs: pydoctor
narrativedocs: sphinx
setenv =
COVERAGE_PROCESS_START = {toxinidir}/.coveragerc
commands =
{tests,nomodules}: {envbindir}/trial --reactor={env:TWISTED_REACTOR:default} --reporter={env:TRIAL_REPORTER:verbose} {posargs:twisted}
twistedchecker: twistedchecker {posargs:twisted}
pyflakes: pyflakes {posargs:twisted admin bin}
apidocs: {toxinidir}/bin/admin/build-apidocs {toxinidir} apidocs
narrativedocs: sphinx-build -aW -b html -d {toxinidir}/docs/_build {toxinidir}/docs {toxinidir}/docs/_build/
coverage: python {toxinidir}/admin/_copy.py {toxinidir}/admin/zz_coverage.pth {envsitepackagesdir}/zz_coverage.pth
coverage: coverage erase
coverage: coverage run -p --rcfile={toxinidir}/.coveragerc {envbindir}/trial --reactor={env:TWISTED_REACTOR:default} --reporter={env:TRIAL_REPORTER:verbose} {posargs:twisted}
coverage: python {toxinidir}/admin/_copy.py "_trial_temp/.coverage*" {toxinidir}
coverage: python {toxinidir}/admin/_copy.py ".coverage*" {toxinidir}
topfile: python {toxinidir}/bin/admin/check-topfile "{toxinidir}"
[testenv:twistedchecker]
basepython=python2.7
changedir={toxinidir}
[testenv:pyflakes]
basepython=python2.7
changedir={toxinidir}
[testenv:apidocs]
basepython=python2.7
[testenv:topfile]
basepython=python2.7
changedir={toxinidir}
[tox:travis]
; This section is used by tox-travis
; https://pypi.python.org/pypi/tox-travis
2.7 = py27-coverage-posix,py27-nomodules-posix,topfile,narrativedocs,pyflakes
3.3 = py33-coverage-posix
3.4 = py34-coverage-posix
3.5 = py35-coverage-posix