summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 11:35:38 +0800
committerhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 11:36:37 +0800
commit7e29c5c2016e74aaa1d333ae0998e58ce20e0d5f (patch)
tree9f7732539cba4fe88c412de742b0d9abb2a673b5
parentc8de2b6f9ffd974618f3e605b6625d12b6ebd844 (diff)
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: I7e49d7e03c3557152cee3892e9d039a8378f573e
Notes
Notes (review): Code-Review+2: zhurong <aaronzhu1121@gmail.com> Workflow+1: zhurong <aaronzhu1121@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 11 Jun 2018 13:35:43 +0000 Reviewed-on: https://review.openstack.org/573895 Project: openstack/murano-tempest-plugin Branch: refs/heads/master
-rw-r--r--tox.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index c888992..4a5f7af 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,22 +13,28 @@ deps = -r{toxinidir}/test-requirements.txt
13commands = python setup.py test --slowest --testr-args='{posargs}' 13commands = python setup.py test --slowest --testr-args='{posargs}'
14 14
15[testenv:pep8] 15[testenv:pep8]
16basepython = python3
16commands = flake8 {posargs} 17commands = flake8 {posargs}
17 18
18[testenv:venv] 19[testenv:venv]
20basepython = python3
19commands = {posargs} 21commands = {posargs}
20 22
21[testenv:cover] 23[testenv:cover]
24basepython = python3
22commands = python setup.py test --coverage --testr-args='{posargs}' 25commands = python setup.py test --coverage --testr-args='{posargs}'
23 26
24[testenv:docs] 27[testenv:docs]
28basepython = python3
25commands = python setup.py build_sphinx 29commands = python setup.py build_sphinx
26 30
27[testenv:releasenotes] 31[testenv:releasenotes]
32basepython = python3
28commands = 33commands =
29 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 34 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
30 35
31[testenv:debug] 36[testenv:debug]
37basepython = python3
32commands = oslo_debug_helper {posargs} 38commands = oslo_debug_helper {posargs}
33 39
34[flake8] 40[flake8]