Merge "tox: Trivial cleanup"

This commit is contained in:
Zuul 2020-01-30 12:25:43 +00:00 committed by Gerrit Code Review
commit 790d8e8391

10
tox.ini
View File

@ -1,11 +1,12 @@
[tox] [tox]
minversion = 1.8 minversion = 3.1
envlist = py27,py37,pep8 envlist = py27,py37,pep8
skipsdist = True skipsdist = True
ignore_basepython_conflict = True
[testenv] [testenv]
basepython = python3
usedevelop = True usedevelop = True
install_command = pip install {opts} {packages}
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
OS_DEBUG=1 OS_DEBUG=1
@ -18,15 +19,12 @@ deps =
commands = stestr run --slowest {posargs} commands = stestr run --slowest {posargs}
[testenv:pep8] [testenv:pep8]
basepython = python3
commands = flake8 {posargs} commands = flake8 {posargs}
[testenv:venv] [testenv:venv]
basepython = python3
commands = {posargs} commands = {posargs}
[testenv:cover] [testenv:cover]
basepython = python3
deps = {[testenv]deps} deps = {[testenv]deps}
coverage coverage
setenv = setenv =
@ -38,7 +36,6 @@ commands =
coverage xml -o cover/coverage.xml coverage xml -o cover/coverage.xml
[testenv:docs] [testenv:docs]
basepython = python3
whitelist_externals = whitelist_externals =
rm rm
deps = deps =
@ -49,7 +46,6 @@ commands =
sphinx-build -W --keep-going -b html doc/source doc/build/html sphinx-build -W --keep-going -b html doc/source doc/build/html
[testenv:debug] [testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs} commands = oslo_debug_helper {posargs}
[testenv:lower-constraints] [testenv:lower-constraints]