summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 19:56:46 +0800
committerhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 19:57:37 +0800
commit0a7ec630dbb3946f5f403055848e6a46292582a6 (patch)
treec6c7d766013c1d5389dad02b220b6d9d9b46d7f3
parentf5c9ea4dc83a6d3771a70c8f91b81ddbea00231d (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: Ica0eb93b9b6703f9be57205eaae94cf9e2fb0268
Notes
Notes (review): Code-Review+2: Claudiu Belu <cbelu@cloudbasesolutions.com> Workflow+1: Claudiu Belu <cbelu@cloudbasesolutions.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 01 Aug 2018 13:21:44 +0000 Reviewed-on: https://review.openstack.org/573956 Project: openstack/oswin-tempest-plugin Branch: refs/heads/master
-rw-r--r--tox.ini5
1 files changed, 5 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index bd1d8b0..73c19d4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,18 +17,23 @@ deps = -r{toxinidir}/requirements.txt
17commands = python setup.py test --slowest --testr-args='{posargs}' 17commands = python setup.py test --slowest --testr-args='{posargs}'
18 18
19[testenv:pep8] 19[testenv:pep8]
20basepython = python3
20commands = flake8 {posargs} 21commands = flake8 {posargs}
21 22
22[testenv:venv] 23[testenv:venv]
24basepython = python3
23commands = {posargs} 25commands = {posargs}
24 26
25[testenv:cover] 27[testenv:cover]
28basepython = python3
26commands = python setup.py test --coverage --testr-args='{posargs}' 29commands = python setup.py test --coverage --testr-args='{posargs}'
27 30
28[testenv:docs] 31[testenv:docs]
32basepython = python3
29commands = python setup.py build_sphinx 33commands = python setup.py build_sphinx
30 34
31[testenv:debug] 35[testenv:debug]
36basepython = python3
32commands = oslo_debug_helper {posargs} 37commands = oslo_debug_helper {posargs}
33 38
34[flake8] 39[flake8]