-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
33 lines (30 loc) · 1.11 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
[tox]
envlist = pypy,py27,py36,py37,py38,py39,pypy3,coverage,docs
[testenv]
# JAM: The comment and setting are cargo-culted from zope.interface.
# ``usedevelop`` is required otherwise unittest complains that it
# discovers a file in src/... but imports it from .tox/.../
# ``skip_install`` also basically works, but that causes the ``extras``
# not to be installed (though ``deps`` still are), and doesn't
# rebuild C extensions.
usedevelop = true
extras = test
commands =
coverage run -p -m zope.testrunner --test-path=src --auto-color --auto-progress [] # substitute with tox positional args
setenv =
PYTHONHASHSEED=1042466059
ZOPE_INTERFACE_STRICT_IRO=1
[testenv:coverage]
# The -i/--ignore arg may be necessary, I'm not sure.
# It was cargo-culted over from zope.interface.
commands =
coverage combine
coverage report -i
coverage html -i
depends = py27,py36,py37,py38,py39,pypy,pypy3,docs
parallel_show_output = true
[testenv:docs]
extras = docs
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctests