-
Notifications
You must be signed in to change notification settings - Fork 36
/
tox.ini
63 lines (51 loc) · 1.66 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
[tox]
minversion = 2.0
skipsdist = True
envlist = py3,pep8,functional-py3,coverage
[testenv]
usedevelop=True
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY BRANCH
setenv =
VIRTUAL_ENV={envdir}
deps =
-chttps://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt
-c{toxinidir}/upper-constraints.txt
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = /bin/bash
[testenv:py27]
commands =
/bin/bash {toxinidir}/tools/run_tests.sh --unit
[testenv:py3]
basepython = python3
commands = {[testenv:py27]commands}
[testenv:pep8]
# for gate testing, scans only the files changed in the last commit
commands =
/bin/bash tools/coding-checks.sh --pylint HEAD~ '{posargs}'
[testenv:pep8-full]
# For manual testing, scans the whole codebase
commands =
/bin/bash tools/coding-checks.sh --pylint '{posargs}'
[testenv:coverage]
basepython = python3
commands =
/bin/bash {toxinidir}/tools/run_tests.sh --coverage
[testenv:functional]
commands =
/bin/bash {toxinidir}/tools/run_tests.sh --functional
[testenv:functional-py3]
basepython = python3
commands = {[testenv:functional]commands}
[testenv:docs]
deps = -rdocs/requirements.txt
commands =
sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals = echo
[testenv:docs-linkcheck]
deps = -rdocs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
[testenv:os-requirements]
commands =
python {toxinidir}/tools/os-requirements-check.py {envdir}