Merge "fix tox python3 overrides"

This commit is contained in:
Zuul 2018-06-09 04:24:09 +00:00 committed by Gerrit Code Review
commit 36ed4c11cb
1 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,7 @@ whitelist_externals =
bash bash
[testenv:pep8] [testenv:pep8]
basepython = python3
commands = commands =
flake8 flake8
# Run security linter # Run security linter
@ -25,14 +26,17 @@ commands =
bandit -r keystoneauth1 -x tests -s B110,B410 bandit -r keystoneauth1 -x tests -s B110,B410
[testenv:bandit] [testenv:bandit]
basepython = python3
# 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.
commands = bandit -r keystoneauth1 -x tests -s B110,B410 commands = bandit -r keystoneauth1 -x tests -s B110,B410
[testenv:venv] [testenv:venv]
basepython = python3
commands = {posargs} commands = {posargs}
[testenv:cover] [testenv:cover]
basepython = python3
setenv = setenv =
{[testenv]setenv} {[testenv]setenv}
PYTHON=coverage run --source keystoneauth1 --parallel-mode PYTHON=coverage run --source keystoneauth1 --parallel-mode
@ -43,6 +47,7 @@ commands =
coverage xml -o cover/coverage.xml coverage xml -o cover/coverage.xml
[testenv:debug] [testenv:debug]
basepython = python3
commands = oslo_debug_helper -t keystoneauth1/tests {posargs} commands = oslo_debug_helper -t keystoneauth1/tests {posargs}
[flake8] [flake8]
@ -62,6 +67,7 @@ import-order-style = pep8
application-import-names = keystoneauth1 application-import-names = keystoneauth1
[testenv:docs] [testenv:docs]
basepython = python3
deps = deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
@ -71,6 +77,7 @@ commands =
python setup.py build_sphinx python setup.py build_sphinx
[testenv:releasenotes] [testenv:releasenotes]
basepython = python3
deps = deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt