tox.ini (keystone-19.0.0) | : | tox.ini (keystone-19.0.1) | ||
---|---|---|---|---|
[tox] | [tox] | |||
minversion = 3.2.0 | minversion = 3.2.0 | |||
skipsdist = True | skipsdist = True | |||
envlist = py37,pep8,api-ref,docs,genconfig,genpolicy,releasenotes,protection | envlist = py37,pep8,api-ref,docs,genconfig,genpolicy,releasenotes,protection | |||
[testenv] | [testenv] | |||
usedevelop = True | usedevelop = True | |||
basepython = python3 | basepython = python3 | |||
setenv = VIRTUAL_ENV={envdir} | setenv = VIRTUAL_ENV={envdir} | |||
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/ upper/master} | deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/up per/wallaby} | |||
-r{toxinidir}/test-requirements.txt | -r{toxinidir}/test-requirements.txt | |||
-r{toxinidir}/requirements.txt | -r{toxinidir}/requirements.txt | |||
.[ldap,memcache,mongodb] | .[ldap,memcache,mongodb] | |||
commands = | commands = | |||
find keystone -type f -name "*.pyc" -delete | find keystone -type f -name "*.pyc" -delete | |||
stestr run {posargs} | stestr run {posargs} | |||
whitelist_externals = | whitelist_externals = | |||
bash | bash | |||
find | find | |||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY PBR_VE RSION | passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY PBR_VE RSION | |||
skipping to change at line 49 | skipping to change at line 49 | |||
[testenv:fast8] | [testenv:fast8] | |||
envdir = {toxworkdir}/pep8 | envdir = {toxworkdir}/pep8 | |||
commands = | commands = | |||
{toxinidir}/tools/fast8.sh | {toxinidir}/tools/fast8.sh | |||
passenv = FAST8_NUM_COMMITS | passenv = FAST8_NUM_COMMITS | |||
[testenv:bandit] | [testenv:bandit] | |||
# NOTE(browne): This is required for the integration test job of the bandit | # NOTE(browne): This is required for the integration test job of the bandit | |||
# project. Please do not remove. | # project. Please do not remove. | |||
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/ upper/master} | deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/up per/wallaby} | |||
-r{toxinidir}/requirements.txt | -r{toxinidir}/requirements.txt | |||
.[bandit] | .[bandit] | |||
commands = bandit -r keystone -x 'keystone/tests/*' | commands = bandit -r keystone -x 'keystone/tests/*' | |||
[testenv:cover] | [testenv:cover] | |||
# Also do not run test_coverage_ext tests while gathering coverage as those | # Also do not run test_coverage_ext tests while gathering coverage as those | |||
# tests conflict with coverage. | # tests conflict with coverage. | |||
setenv = | setenv = | |||
{[testenv]setenv} | {[testenv]setenv} | |||
PYTHON=coverage run --source keystone --parallel-mode | PYTHON=coverage run --source keystone --parallel-mode | |||
skipping to change at line 129 | skipping to change at line 129 | |||
# E402: module level import not at top of file | # E402: module level import not at top of file | |||
# W503: line break before binary operator | # W503: line break before binary operator | |||
# W504 line break after binary operator | # W504 line break after binary operator | |||
ignore = D100,D101,D102,D103,D104,D203,E402,W503,W504 | ignore = D100,D101,D102,D103,D104,D203,E402,W503,W504 | |||
exclude=.venv,.git,.tox,build,dist,*lib/python*,*egg,tools,vendor,.update-venv,* .ini,*.po,*.pot | exclude=.venv,.git,.tox,build,dist,*lib/python*,*egg,tools,vendor,.update-venv,* .ini,*.po,*.pot | |||
max-complexity=24 | max-complexity=24 | |||
[testenv:docs] | [testenv:docs] | |||
deps = | deps = | |||
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper /master} | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/w allaby} | |||
-r{toxinidir}/doc/requirements.txt | -r{toxinidir}/doc/requirements.txt | |||
.[ldap,memcache,mongodb] | .[ldap,memcache,mongodb] | |||
commands= | commands= | |||
bash -c "rm -rf doc/build" | bash -c "rm -rf doc/build" | |||
bash -c "rm -rf doc/source/api" | bash -c "rm -rf doc/source/api" | |||
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html | sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html | |||
# FIXME(gyee): we need to pre-create the doc/build/pdf/_static directory as a | # FIXME(gyee): we need to pre-create the doc/build/pdf/_static directory as a | |||
# workaround because sphinx_feature_classification.support_matrix extension | # workaround because sphinx_feature_classification.support_matrix extension | |||
# is operating under the assumption that the _static directory already exist | # is operating under the assumption that the _static directory already exist | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |