diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -6,12 +6,12 @@ envlist = py35,py27,pep8 install_command = pip install {opts} {packages} deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} - -r{toxinidir}/test-requirements.txt - -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/requirements.txt # We want to support both vanilla stdlib and eventlet monkey patched commands = - lockutils-wrapper stestr run --slowest {posargs} - env TEST_EVENTLET=1 lockutils-wrapper stestr run --slowest {posargs} + lockutils-wrapper stestr run --slowest {posargs} + env TEST_EVENTLET=1 lockutils-wrapper stestr run --slowest {posargs} [testenv:py27] basepython = python2.7 @@ -32,19 +32,22 @@ commands = {posargs} [testenv:docs] basepython = python3 whitelist_externals = rm +deps = + {[testenv]deps} + -r{toxinidir}/doc/requirements.txt commands = - rm -fr doc/build - sphinx-build -W -b html doc/source doc/build/html {posargs} + rm -fr doc/build + sphinx-build -W -b html doc/source doc/build/html {posargs} [testenv:cover] basepython = python3 setenv = - PYTHON=coverage run --source oslo_concurrency --parallel-mode + PYTHON=coverage run --source oslo_concurrency --parallel-mode commands = - stestr run {posargs} - coverage combine - coverage html -d cover - coverage xml -o cover/coverage.xml + stestr run {posargs} + coverage combine + coverage html -d cover + coverage xml -o cover/coverage.xml [flake8] show-source = True @@ -57,6 +60,7 @@ import_exceptions = [testenv:releasenotes] basepython = python3 +deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:lower-constraints] |