forked from collective/contentratings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (42 loc) · 1.49 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
[tox]
envlist = pypy,py27,py36,py37,py38,py39,pypy3,coverage
#,docs,docs2
[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 --fail-under=79
coverage html -i
coverage xml -i
depends = py27,py36,py37,py38,pypy,pypy3
parallel_show_output = true
# [testenv:docs]
# extras = docs
# commands =
# sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
# coverage run -p -m sphinx -b doctest -d docs/_build/doctrees docs docs/_build/doctests
# [testenv:docs2]
# extras = docs
# basepython = python2.7
# commands =
# coverage run -p -m sphinx -b doctest -d docs/_build/doctrees2 docs docs/_build/doctests2
# [testenv:docspypy]
# extras = docs
# basepython = pypy
# commands =
# sphinx-build -b doctest -d docs/_build/doctreespypy2 docs docs/_build/doctestspypy2