tox.ini (openstack-cyborg-6.0.0) | : | tox.ini (openstack-cyborg-7.0.0) | ||
---|---|---|---|---|
[tox] | [tox] | |||
minversion = 3.1.1 | minversion = 3.18.0 | |||
envlist = py38,pep8 | envlist = py38,pep8 | |||
skipsdist = True | skipsdist = True | |||
# Automatic envs (pyXX) will only use the python version appropriate to that | # Automatic envs (pyXX) will only use the python version appropriate to that | |||
# env and ignore basepython inherited from [testenv] if we set | # env and ignore basepython inherited from [testenv] if we set | |||
# ignore_basepython_conflict. | # ignore_basepython_conflict. | |||
ignore_basepython_conflict = True | ignore_basepython_conflict = True | |||
[testenv] | [testenv] | |||
basepython = python3 | basepython = python3 | |||
usedevelop = True | usedevelop = True | |||
whitelist_externals = | allowlist_externals = | |||
bash | bash | |||
find | find | |||
rm | rm | |||
env | env | |||
make | make | |||
setenv = | setenv = | |||
VIRTUAL_ENV={envdir} | VIRTUAL_ENV={envdir} | |||
OS_TEST_PATH=cyborg/tests/unit | OS_TEST_PATH=cyborg/tests/unit | |||
deps = | deps = | |||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/w allaby} | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/m aster} | |||
-r{toxinidir}/requirements.txt | -r{toxinidir}/requirements.txt | |||
-r{toxinidir}/test-requirements.txt | -r{toxinidir}/test-requirements.txt | |||
commands = rm -f .testrepository/times.dbm | commands = rm -f .testrepository/times.dbm | |||
stestr run --slowest {posargs} | stestr run --slowest {posargs} | |||
[testenv:genpolicy] | [testenv:genpolicy] | |||
sitepackages = False | sitepackages = False | |||
envdir = {toxworkdir}/venv | envdir = {toxworkdir}/venv | |||
commands = | commands = | |||
skipping to change at line 80 | skipping to change at line 80 | |||
commands = | commands = | |||
bash tools/flake8wrap.sh -HEAD | bash tools/flake8wrap.sh -HEAD | |||
[testenv:venv] | [testenv:venv] | |||
commands = {posargs} | commands = {posargs} | |||
[testenv:cover] | [testenv:cover] | |||
setenv = | setenv = | |||
PYTHON=coverage run --source cyborg --parallel-mode | PYTHON=coverage run --source cyborg --parallel-mode | |||
commands = | commands = | |||
coverage erase | ||||
stestr run {posargs} | stestr run {posargs} | |||
coverage combine | coverage combine | |||
coverage html -d cover | coverage html -d cover | |||
coverage xml -o cover/coverage.xml | coverage xml -o cover/coverage.xml | |||
coverage report | coverage report | |||
[doc8] | [doc8] | |||
ignore-path = .venv,.git,.tox,*cyborg/locale*,*lib/python*,*cyborg.egg*,api-ref/ build,doc/build,doc/source/contributor/api | ignore-path = .venv,.git,.tox,*cyborg/locale*,*lib/python*,*cyborg.egg*,api-ref/ build,doc/build,doc/source/contributor/api | |||
[testenv:docs] | [testenv:docs] | |||
description = | description = | |||
Build main documentation. | Build main documentation. | |||
deps = | deps = | |||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/w allaby} | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/m aster} | |||
-r{toxinidir}/doc/requirements.txt | -r{toxinidir}/doc/requirements.txt | |||
commands = | commands = | |||
rm -rf doc/build/html | rm -rf doc/build/html | |||
sphinx-build -W -b html doc/source doc/build/html | sphinx-build -W -b html doc/source doc/build/html | |||
[testenv:pdf-docs] | [testenv:pdf-docs] | |||
description = | description = | |||
Build PDF documentation. | Build PDF documentation. | |||
envdir = {toxworkdir}/docs | envdir = {toxworkdir}/docs | |||
deps = {[testenv:docs]deps} | deps = {[testenv:docs]deps} | |||
skipping to change at line 129 | skipping to change at line 130 | |||
[testenv:api-ref] | [testenv:api-ref] | |||
description = | description = | |||
Generate the API ref. Called from CI scripts to test and publish to docs.opens tack.org. | Generate the API ref. Called from CI scripts to test and publish to docs.opens tack.org. | |||
# This environment is called from CI scripts to test and publish | # This environment is called from CI scripts to test and publish | |||
# the API Ref to docs.openstack.org. | # the API Ref to docs.openstack.org. | |||
envdir = {toxworkdir}/docs | envdir = {toxworkdir}/docs | |||
deps = {[testenv:docs]deps} | deps = {[testenv:docs]deps} | |||
commands = | commands = | |||
rm -rf api-ref/build | rm -rf api-ref/build | |||
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build /html | sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build /html | |||
whitelist_externals = rm | allowlist_externals = rm | |||
[flake8] | [flake8] | |||
filename = *.py,app.wsgi | filename = *.py,app.wsgi | |||
show-source = True | show-source = True | |||
ignore = E123,E125,H405,W503,W504 | ignore = E123,E125,H405,W503,W504 | |||
builtins = _ | builtins = _ | |||
enable-extensions = H106,H203,H904 | enable-extensions = H106,H203,H904 | |||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,*sqlalchemy/alembic/ver sions/*,demo/,releasenotes | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,*sqlalchemy/alembic/ver sions/*,demo/,releasenotes | |||
[testenv:bandit] | [testenv:bandit] | |||
End of changes. 6 change blocks. | ||||
5 lines changed or deleted | 6 lines changed or added |