summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-01-30 13:11:33 +0000
committerGerrit Code Review <review@openstack.org>2020-01-30 13:11:33 +0000
commitfc035dbff68fdabb92074447e390efc7f90ee030 (patch)
treeeb59084bcef7393983aca661744367c4b0f00d52
parentedcb46deae997056020acff8d24bf328778624c9 (diff)
parentdb72309ae8b155453ce778606d7e9f939ed91c33 (diff)
downloadoslo-config-fc035dbff68fdabb92074447e390efc7f90ee030.tar.gz
Merge "tox: Trivial cleanup"
-rw-r--r--tox.ini14
1 files changed, 3 insertions, 11 deletions
diff --git a/tox.ini b/tox.ini
index 2f18785..c91fe72 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,11 @@
[tox]
-minversion = 2.0
+minversion = 3.1
distribute = False
envlist = py27,py37,pep8
+ignore_basepython_conflict = True
[testenv]
+basepython = python3
whitelist_externals =
find
setenv =
@@ -21,25 +23,19 @@ commands =
stestr slowest
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
-[testenv:py27]
-basepython = python2.7
-
[testenv:pep8]
-basepython = python3
commands =
flake8
# Run security linter
bandit -r oslo_config -x tests -n5
[testenv:cover]
-basepython = python3
setenv =
PYTHON=coverage run --source oslo_config --parallel-mode
commands =
@@ -51,11 +47,9 @@ commands =
coverage report --show-missing
[testenv:venv]
-basepython = python3
commands = {posargs}
[testenv:docs]
-basepython = python3
whitelist_externals = rm
deps = -r{toxinidir}/doc/requirements.txt
commands =
@@ -63,7 +57,6 @@ commands =
sphinx-build -W --keep-going -b html doc/source doc/build/html {posargs}
[testenv:bandit]
-basepython = python3
commands = bandit -r oslo_config -x tests -n5
[flake8]
@@ -72,7 +65,6 @@ enable-extensions = H203,H106
exclude = .tox,dist,doc,*.egg,build
[testenv:releasenotes]
-basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html