-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
42 lines (36 loc) · 1.23 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
[tox]
envlist = {py27,pypy,py33,py34}-tests, pyflakes, cov, docs
[testenv]
changedir = {envtmpdir}
skipsdist=True
deps =
twisted
commands =
{envbindir}/pip install {toxinidir}
{envbindir}/trial {posargs:constantly}
[testenv:cov]
deps =
{[testenv]deps}
coverage
commands =
{envbindir}/coverage run --rcfile={toxinidir}/.coveragerc {envbindir}/trial constantly
{envbindir}/coverage report --rcfile={toxinidir}/.coveragerc --show-missing --fail-under=100
{envbindir}/coverage html {posargs} --rcfile={toxinidir}/.coveragerc
###########################
# Run pyflakes
###########################
[testenv:pyflakes]
deps = pyflakes
commands = {envbindir}/pyflakes {toxinidir}/constantly
[testenv:docs]
deps = sphinx
basepython = python2.7
commands =
{envbindir}/sphinx-build -W -b html {toxinidir}/docs {toxinidir}/docs/_build/html
[testenv:apidocs]
deps =
epydoc
pydoctor
commands =
{envbindir}/pydoctor -q --prepend-package zope --project-name zope.interface --add-package {envsitepackagesdir}/zope/interface -o zope.interface.system
{envbindir}/pydoctor -q --system-class pydoctor.twistedmodel.TwistedSystem --project-name constantly --extra-system=zope.interface.system:https://zope.org/ constantly