-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
33 lines (30 loc) · 1.12 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,py35,py36,py37,py38,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
# Pending https://github.com/NextThought/nti.externalization/issues/105
# 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 html -i
coverage report -i --fail-under=100
depends = py27,py36,py37,py38,pypy,pypy3,docs
parallel_show_output = true
[testenv:docs]
extras = docs
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html