-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
26 lines (23 loc) · 705 Bytes
/
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
[tox]
envlist = py27,py36,py37,py38,py39
[testenv]
description = Run tests with {basepython}
deps =
-rrequirements.txt
-rrequirements-test.txt
commands =
{envpython} -m pytest --junitxml=junit-{envname}.xml {posargs}
[testenv:docs]
description = Build documentation with sphinx
basepython = python2.7
deps =
-rdocs/requirements.txt
-rrequirements.txt
commands =
{envpython} -m sphinx -b man docs/source/ {toxworkdir}/docs/man/
{envpython} -m sphinx -b html docs/source/ {toxworkdir}/docs/html/
{envpython} -c 'print "man: {toxworkdir}/docs/man/"'
{envpython} -c 'print "html: file://{toxworkdir}/docs/html/index.html"'
[pytest]
xfail_strict = true
addopts = -rxs -v