-
Notifications
You must be signed in to change notification settings - Fork 77
/
tox.ini
89 lines (83 loc) · 2.56 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# ============================================================================
# TOX CONFIGURATION: behave.example
# ============================================================================
# DESCRIPTION:
# Use tox to run tasks (tests, ...) in a clean virtual environment.
# Tox is configured by default for online usage (per default).
#
# Run tox in online mode, like:
#
# tox -e py38
# tox -e docs
# tox -e linkcheck
#
# SEE ALSO:
# * https://tox.readthedocs.io/en/latest/config.html
# ============================================================================
[tox]
minversion = 3.10.0
envlist = py38, py39, py27, docs
skip_missing_interpreters = True
sitepackages = False
# indexserver =
# default = https://pypi.org/simple
#
# -----------------------------------------------------------------------------
# TEST ENVIRONMENTS:
# -----------------------------------------------------------------------------
# -- PREPARED: changedir = {toxworkdir}/{envdir}
[testenv]
whitelist_externals = echo
commands=
echo "USING: PYTHONPATH={env:PYTHONPATH}"
{toxinidir}/bin/behave --version
{toxinidir}/bin/behave --format=progress {posargs:} features
{toxinidir}/bin/behave --format=progress {posargs:} datatype.features
{toxinidir}/bin/behave --format=progress {posargs:} step_matcher.features
deps=
-r {toxinidir}/py.requirements/ci.tox.txt
setenv=
PYTHONPATH = {toxinidir}{:}{toxinidir}/lib/python
TOXRUN = yes
passenv=
PYTHONPATH
TOXRUN
[testenv:docs]
basepython= python3
changedir = {toxinidir}/docs
whitelist_externals = echo
commands=
echo "USING: PYTHONPATH={env:PYTHONPATH}"
sphinx-build -b html -d {envtmpdir}/doctrees -Dlanguage=en . {envtmpdir}/html
# -- DISABLED: warnings-as-errors
# sphinx-build -W -b html -d {envtmpdir}/doctrees -Dlanguage=en . {envtmpdir}/html
# DISABLED: echo "USING: PATH={env:PATH}"
deps=
{[testenv]deps}
-r {toxinidir}/py.requirements/docs.txt
setenv=
PATH = {toxinidir}/bin{:}{env:PATH}
PYTHONPATH = {toxinidir}{:}{toxinidir}/lib/python
TOXRUN = yes
passenv=
PATH
PYTHONPATH
TOXRUN
[testenv:linkcheck]
basepython= python3
changedir = {toxinidir}/docs
whitelist_externals = echo
commands=
echo "USING: PYTHONPATH={env:PYTHONPATH}"
sphinx-build -b linkcheck -d {envtmpdir}/doctrees -Dlanguage=en . {envtmpdir}/linkcheck
deps=
{[testenv]deps}
-r {toxinidir}/py.requirements/docs.txt
setenv=
PATH = {toxinidir}/bin{:}{env:PATH}
PYTHONPATH = {toxinidir}{:}{toxinidir}/lib/python
TOXRUN = yes
passenv=
PATH
PYTHONPATH
TOXRUN