forked from zopefoundation/persistent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (38 loc) · 1.05 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
[tox]
envlist =
py27,py35,py36,py37,py37-pure,py38,py39,py27-pure,pypy,pypy3,coverage,docs
[testenv]
deps =
.[test]
commands =
zope-testrunner --test-path=. []
[testenv:py27-pure]
basepython =
python2.7
setenv =
PURE_PYTHON = 1
[testenv:py37-pure]
basepython =
python3.7
setenv =
PURE_PYTHON = 1
[testenv:coverage]
usedevelop = true
basepython =
python3.6
commands =
coverage run -m zope.testrunner --test-path=.
python -c 'import os, subprocess; subprocess.check_call("coverage run -a -m zope.testrunner --test-path=.", env=dict(os.environ, PURE_PYTHON="1"), shell=True)'
python -c 'import os, subprocess; subprocess.check_call("coverage run -a -m zope.testrunner --test-path=.", env=dict(os.environ, PURE_PYTHON="0"), shell=True)'
coverage report --fail-under=100
deps =
{[testenv]deps}
coverage
[testenv:docs]
basepython =
python3.6
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
deps =
.[docs]