summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqingszhao <zhao.daqing@99cloud.net>2018-06-12 00:40:15 +0800
committerqingszhao <zhao.daqing@99cloud.net>2018-06-12 00:41:17 +0800
commit3e4f2e5ee359516bdb97423a5cf015b9a28318d2 (patch)
tree470010f1a98590d9a00d3ad09a722956190f16d6
parent59247628c42576c2962b8c9aabb03ff1575055e1 (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: I0d7c93b0c7e48dd86f3e1591596ca6e10caff196
Notes
Notes (review): Code-Review+2: Paul Belanger <pabelanger@redhat.com> Workflow+1: Paul Belanger <pabelanger@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 14 Jun 2018 20:59:59 +0000 Reviewed-on: https://review.openstack.org/574333 Project: openstack-infra/grafyaml Branch: refs/heads/master
-rw-r--r--tox.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index eb73406..2ddfd7a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,18 +13,22 @@ deps = -r{toxinidir}/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 17commands = flake8
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 = 25commands =
23 coverage erase 26 coverage erase
24 python setup.py test --coverage --coverage-package-name=grafana_dashboards --testr-args='{posargs}' 27 python setup.py test --coverage --coverage-package-name=grafana_dashboards --testr-args='{posargs}'
25 coverage report 28 coverage report
26 29
27[testenv:docs] 30[testenv:docs]
31basepython = python3
28commands = python setup.py build_sphinx 32commands = python setup.py build_sphinx
29 33
30[flake8] 34[flake8]