4 envlist = py3,pep8,functional-py3,coverage
8 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY BRANCH
12 -chttps://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt
13 -c{toxinidir}/upper-constraints.txt
14 -r{toxinidir}/requirements.txt
15 -r{toxinidir}/test-requirements.txt
17 whitelist_externals = /bin/bash
21 /bin/bash {toxinidir}/tools/run_tests.sh --unit
25 commands = {[testenv:py27]commands}
28 # for gate testing, scans only the files changed in the last commit
30 /bin/bash tools/coding-checks.sh --pylint HEAD~ '{posargs}'
33 # For manual testing, scans the whole codebase
35 /bin/bash tools/coding-checks.sh --pylint '{posargs}'
40 /bin/bash {toxinidir}/tools/run_tests.sh --coverage
44 /bin/bash {toxinidir}/tools/run_tests.sh --functional
46 [testenv:functional-py3]
48 commands = {[testenv:functional]commands}
51 deps = -rdocs/requirements.txt
53 sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
54 echo "Generated docs available in {toxinidir}/docs/_build/html"
55 whitelist_externals = echo
57 [testenv:docs-linkcheck]
58 deps = -rdocs/requirements.txt
59 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
61 [testenv:os-requirements]
63 python {toxinidir}/tools/os-requirements-check.py {envdir}