diff --git a/tox.ini b/tox.ini index ad81e160c0..dcb717e881 100644 --- a/tox.ini +++ b/tox.ini @@ -39,6 +39,7 @@ setenv = [testenv:docs] +basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands= bash -c "rm -rf doc/build" @@ -48,6 +49,7 @@ commands= [testenv:deploy-guide] +basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees -b html deploy-guide/source deploy-guide/build/html @@ -60,6 +62,7 @@ extensions = .rst [testenv:releasenotes] +basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html @@ -68,12 +71,14 @@ commands = # environment used by the -infra templated docs job [testenv:venv] +basepython = python3 commands = {posargs} [testenv:pep8] +basepython = python3 commands = bash -c "{toxinidir}/tests/common/test-pep8.sh" @@ -88,6 +93,7 @@ ignore=F403 [testenv:bashate] +basepython = python3 commands = bash -c "{toxinidir}/tests/common/test-bashate.sh" @@ -103,6 +109,7 @@ commands = # or for a stable branch: # http://git.openstack.org/cgit/openstack/openstack-ansible-tests/plain/test-ansible-deps.txt?h=stable/newton [testenv:ansible] +basepython = python3 deps = {[testenv]deps} -r{toxinidir}/global-requirement-pins.txt @@ -111,6 +118,7 @@ deps = [testenv:ansible-syntax] +basepython = python3 deps = {[testenv:ansible]deps} commands = @@ -119,6 +127,7 @@ commands = [testenv:ansible-lint] +basepython = python3 deps = {[testenv:ansible]deps} commands = @@ -127,6 +136,7 @@ commands = [testenv:inventory] +basepython = python3 # Use a fixed seed since some inventory tests rely on specific ordering setenv = {[testenv]setenv} @@ -152,6 +162,7 @@ commands = [testenv:linters] +basepython = python3 deps = {[testenv:docs]deps} {[testenv:ansible]deps}