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:
parent
6201296d61
commit
86f514e9cc
5
tox.ini
5
tox.ini
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue