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: I2ee74a543edbfbec4e73ace261b1309988347756
This commit is contained in:
parent
41c401ca65
commit
e482bc2dc4
6
tox.ini
6
tox.ini
|
@ -18,12 +18,15 @@ deps =
|
|||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
commands = python setup.py build_sphinx
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
deps = bashate
|
||||
flake8
|
||||
diskimage-builder
|
||||
|
@ -38,6 +41,7 @@ setenv =
|
|||
ELEMENTS_DIR=elements
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
commands = python setup.py test --coverage --coverage-package-name=instack_undercloud --testr-args='{posargs}'
|
||||
|
||||
[flake8]
|
||||
|
@ -53,9 +57,11 @@ exclude = .tox,dist,doc,*.egg,build,elements/puppet-stack-config/install.d/02-pu
|
|||
ignore = dibdebugtrace sete setu setpipefail mddocs
|
||||
|
||||
[testenv:genconfig]
|
||||
basepython = python3
|
||||
commands = oslo-config-generator --config-file config-generator/undercloud.conf
|
||||
|
||||
[testenv:releasenotes]
|
||||
basepython = python3
|
||||
commands = bash -c tools/releasenotes_tox.sh
|
||||
|
||||
[testenv:lower-constraints]
|
||||
|
|
Loading…
Reference in New Issue