diff --git a/tox.ini b/tox.ini index f86a0be99a..04ae68bf2f 100644 --- a/tox.ini +++ b/tox.ini @@ -16,6 +16,7 @@ commands = stestr slowest [testenv:releasenotes] +basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/requirements.txt @@ -27,6 +28,7 @@ commands = whitelist_externals = rm [testenv:debug] +basepython = python3 commands = oslo_debug_helper {posargs} [testenv:debug-py27] @@ -60,17 +62,21 @@ commands = {toxinidir}/tools/check_logging.sh {toxinidir}/manila [testenv:genconfig] +basepython = python3 whitelist_externals = bash commands = oslo-config-generator --config-file etc/oslo-config-generator/manila.conf [testenv:genpolicy] +basepython = python3 commands = oslopolicy-sample-generator --config-file=etc/manila/manila-policy-generator.conf [testenv:venv] +basepython = python3 commands = {posargs} [testenv:docs] +basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/requirements.txt @@ -83,6 +89,7 @@ commands = whitelist_externals = rm [testenv:cover] +basepython = python3 setenv = {[testenv]setenv} PYTHON=coverage run --source manila --parallel-mode @@ -109,6 +116,7 @@ deps = -r{toxinidir}/requirements.txt commands = python tools/lintstack.py check [testenv:api-ref] +basepython = python3 # This environment is called from CI scripts to test and publish # the API Ref to developer.openstack.org. whitelist_externals = rm @@ -117,6 +125,7 @@ commands = sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html [testenv:dbrevision] +basepython = python3 deps = -r{toxinidir}/requirements.txt commands = alembic -c manila/db/migrations/alembic.ini revision -m ""{posargs}