summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorqingszhao <zhao.daqing@99cloud.net>2018-06-12 01:46:53 +0800
committerqingszhao <zhao.daqing@99cloud.net>2018-06-12 01:47:42 +0800
commit0ddb7ec6dcfb1f8a7bd32f3a17221f081a1cc716 (patch)
tree843f74d58565d60fab135212ad8224e85f49f984 /tox.ini
parentcc27116b549bd669d79fc50d8f62d5a73ee89967 (diff)
downloadpbr-0ddb7ec6dcfb1f8a7bd32f3a17221f081a1cc716.tar.gz
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: I70b4fb58c7800158907d80f83018e39d1b785668
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 5 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 9fc050a..8ac38a0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,19 +17,24 @@ commands =
sitepackages = True
[testenv:pep8]
+basepython = python3
commands = flake8 {posargs}
[testenv:docs]
+basepython = python3
commands = python setup.py build_sphinx
[testenv:releasenotes]
+basepython = python3
commands = bash -c {toxinidir}/tools/tox_releasenotes.sh
[testenv:cover]
+basepython = python3
commands =
python setup.py test --coverage
[testenv:venv]
+basepython = python3
commands = {posargs}
[flake8]