summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 10:47:09 +0800
committerhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 10:47:55 +0800
commit4b7b665d4a1b2312628d6892a17ee8b443c5a525 (patch)
tree1d0df2319b6546428cf2ebcba03c1e9ddb1f8a20
parent955f28d3973b442b93a7249b0de8570aaf7801f1 (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: I73f12f66e2b5a1c6612c84b2b332d2b34d4250b4
Notes
Notes (review): Code-Review+2: Jeremy Freudberg <jeremyfreudberg@gmail.com> Workflow+1: Jeremy Freudberg <jeremyfreudberg@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 15 Jun 2018 18:23:56 +0000 Reviewed-on: https://review.openstack.org/573882 Project: openstack/mixmatch 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 b226f87..0504f52 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,24 +13,30 @@ 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 = 17commands =
17 flake8 {posargs} 18 flake8 {posargs}
18 bashate devstack/plugin.sh 19 bashate devstack/plugin.sh
19 20
20[testenv:venv] 21[testenv:venv]
22basepython = python3
21commands = {posargs} 23commands = {posargs}
22 24
23[testenv:cover] 25[testenv:cover]
26basepython = python3
24commands = python setup.py test --coverage --testr-args='{posargs}' 27commands = python setup.py test --coverage --testr-args='{posargs}'
25 28
26[testenv:docs] 29[testenv:docs]
30basepython = python3
27commands = python setup.py build_sphinx 31commands = python setup.py build_sphinx
28 32
29[testenv:releasenotes] 33[testenv:releasenotes]
34basepython = python3
30commands = 35commands =
31 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 36 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
32 37
33[testenv:debug] 38[testenv:debug]
39basepython = python3
34commands = oslo_debug_helper {posargs} 40commands = oslo_debug_helper {posargs}
35 41
36[flake8] 42[flake8]