Merge "fix tox python3 overrides"

This commit is contained in:
Zuul 2018-06-28 13:54:51 +00:00 committed by Gerrit Code Review
commit d23144b381
1 changed files with 8 additions and 1 deletions

View File

@ -16,12 +16,15 @@ setenv =
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:releasenotes]
basepython = python3
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --branch --omit='*test*' --source ironic_inspector --parallel-mode
@ -33,7 +36,7 @@ commands =
coverage html -d ./cover --omit='*test*'
[testenv:pep8]
basepython = python2.7
basepython = python3
commands =
flake8 ironic_inspector
doc8 README.rst CONTRIBUTING.rst doc/source
@ -49,15 +52,18 @@ commands =
python3 -m ironic_inspector.test.functional
[testenv:genconfig]
basepython = python3
envdir = {toxworkdir}/venv
commands = oslo-config-generator --config-file config-generator.conf
[testenv:genpolicy]
basepython = python3
sitepackages = False
envdir = {toxworkdir}/venv
commands = oslopolicy-sample-generator --config-file {toxinidir}/policy-generator.conf
[testenv:genstates]
basepython = python3
deps = {[testenv]deps}
commands = {toxinidir}/tools/states_to_dot.py -f {toxinidir}/doc/source/images/states.svg --format svg
@ -78,6 +84,7 @@ application-import-names = ironic_inspector
import_exceptions = ironicclient.exceptions,ironic_inspector.common.i18n
[testenv:docs]
basepython = python3
setenv = PYTHONHASHSEED=0
sitepackages = False
deps = -r{toxinidir}/test-requirements.txt