fix tox python3 overrides

We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ie14819fe7be1fc6d7d8e04f2aa9f123bb6ad17e6
This commit is contained in:
huang.zhiping 2018-06-09 09:21:21 +08:00
parent 6201296d61
commit 86f514e9cc
1 changed files with 5 additions and 0 deletions

View File

@ -20,14 +20,17 @@ deps = -r{toxinidir}/requirements.txt
commands = {toxinidir}/manage.py test karbor_dashboard --settings=karbor_dashboard.test.settings
[testenv:pep8]
basepython = python3
commands =
/bin/bash run_tests.sh -N --pep8
/bin/bash run_tests.sh -N --makemessages --check-only
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
commands = /bin/bash run_tests.sh -N --no-pep8 --coverage {posargs}
[testenv:py27dj18]
@ -40,12 +43,14 @@ basepython = python2.7
commands = /bin/bash run_tests.sh -N --integration --selenium-headless {posargs}
[testenv:eslint]
basepython = python3
passenv = *
commands = nodeenv -p
npm install
/bin/bash run_tests.sh -N --eslint
[testenv:docs]
basepython = python3
setenv = DJANGO_SETTINGS_MODULE=openstack_dashboard.test.settings
commands = python setup.py build_sphinx