summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVieri <15050873171@163.com>2018-10-12 09:12:56 +0000
committerVieri <15050873171@163.com>2018-12-01 10:56:05 +0000
commitf475bb53bbea7c8d12767e100b3f7922fbb22ad7 (patch)
treefc5ab9696761b599aeb1b5ae9c34595f0b9a5cb6
parentf477528e2d289949ae01995e43ec16fcc0b4ae0d (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: Ib41b2ea8657a996459e43caaac81f5020c0bb31a Closes-Bug: #1801657
Notes
Notes (review): Code-Review+1: Andriy Shevchenko <huang.zhiping@99cloud.net> Code-Review+1: Filippo Inzaghi <zhao.daqing@99cloud.net> Code-Review+1: 98k <18552437190@163.com> Code-Review+1: wu.chunyang <wu.chunyang@99cloud.net> Code-Review+2: Mohammed Naser <mnaser@vexxhost.com> Workflow+1: Mohammed Naser <mnaser@vexxhost.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 15 Mar 2019 15:43:44 +0000 Reviewed-on: https://review.openstack.org/609977 Project: openstack/openstack-ansible-os_almanach Branch: refs/heads/master
-rw-r--r--tox.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 4b03072..21fd093 100644
--- a/tox.ini
+++ b/tox.ini
@@ -75,16 +75,19 @@ ignore=F403,H303
75 75
76 76
77[testenv:bashate] 77[testenv:bashate]
78basepython = python3
78commands = 79commands =
79 bash -c "{toxinidir}/tests/common/test-bashate.sh" 80 bash -c "{toxinidir}/tests/common/test-bashate.sh"
80 81
81 82
82[testenv:ansible-syntax] 83[testenv:ansible-syntax]
84basepython = python3
83commands = 85commands =
84 bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh" 86 bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh"
85 87
86 88
87[testenv:ansible-lint] 89[testenv:ansible-lint]
90basepython = python3
88commands = 91commands =
89 bash -c "{toxinidir}/tests/common/test-ansible-lint.sh" 92 bash -c "{toxinidir}/tests/common/test-ansible-lint.sh"
90 93