forked from zodb/relstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
36 lines (31 loc) · 1.14 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
[tox]
envlist = py27-mysql,py27-postgresql,pypy-mysql,pypy-postgresql,py37-mysql,py37-postgresql,py39-mysql-postgresql
[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
mysql: mysql
postgresql: postgresql
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
# coverage is relatively quite slow on PyPy
[testenv:pypy-mysql]
commands =
python -m zope.testrunner --test-path=src
[testenv:pypy-postgres]
commands =
python -m zope.testrunner --test-path=src
[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