Merge "tox: Trivial cleanup"
This commit is contained in:
commit
0e9364fe3e
13
tox.ini
13
tox.ini
@ -1,8 +1,10 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 2.0
|
minversion = 3.1
|
||||||
envlist = py27,py37,pep8
|
envlist = py27,py37,pep8
|
||||||
|
ignore_basepython_conflict = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
basepython = python3
|
||||||
install_command = pip install {opts} {packages}
|
install_command = pip install {opts} {packages}
|
||||||
deps =
|
deps =
|
||||||
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
@ -14,11 +16,7 @@ commands =
|
|||||||
lockutils-wrapper stestr run --slowest {posargs}
|
lockutils-wrapper stestr run --slowest {posargs}
|
||||||
env TEST_EVENTLET=1 lockutils-wrapper stestr run --slowest {posargs}
|
env TEST_EVENTLET=1 lockutils-wrapper stestr run --slowest {posargs}
|
||||||
|
|
||||||
[testenv:py27]
|
|
||||||
basepython = python2.7
|
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
@ -27,11 +25,9 @@ commands =
|
|||||||
bandit -r oslo_concurrency -x tests -n5 --skip B311,B404,B603,B606
|
bandit -r oslo_concurrency -x tests -n5 --skip B311,B404,B603,B606
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
basepython = python3
|
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
|
||||||
whitelist_externals = rm
|
whitelist_externals = rm
|
||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
@ -41,7 +37,6 @@ commands =
|
|||||||
sphinx-build -W --keep-going -b html doc/source doc/build/html {posargs}
|
sphinx-build -W --keep-going -b html doc/source doc/build/html {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python3
|
|
||||||
setenv =
|
setenv =
|
||||||
PYTHON=coverage run --source oslo_concurrency --parallel-mode
|
PYTHON=coverage run --source oslo_concurrency --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
@ -60,13 +55,11 @@ import_exceptions =
|
|||||||
oslo_concurrency._i18n
|
oslo_concurrency._i18n
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
basepython = python3
|
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
|
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[testenv:lower-constraints]
|
[testenv:lower-constraints]
|
||||||
basepython = python3
|
|
||||||
deps =
|
deps =
|
||||||
-c{toxinidir}/lower-constraints.txt
|
-c{toxinidir}/lower-constraints.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user