|
|
@ -7,14 +7,18 @@ envlist = pep8,py35 |
|
|
|
basepython = python3 |
|
|
|
setenv = VIRTUAL_ENV={envdir} |
|
|
|
OS_TEST_TIMEOUT=150 |
|
|
|
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:1} |
|
|
|
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:1} |
|
|
|
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:1} |
|
|
|
OS_LOG_DEFAULTS={env:OS_LOG_DEFAULTS:""} |
|
|
|
passenv = ZUUL_TEST_ROOT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_LOG_DEFAULTS NODEPOOL_ZK_HOST |
|
|
|
usedevelop = True |
|
|
|
install_command = pip install {opts} {packages} |
|
|
|
whitelist_externals = bash |
|
|
|
deps = -r{toxinidir}/requirements.txt |
|
|
|
-r{toxinidir}/test-requirements.txt |
|
|
|
commands = |
|
|
|
python setup.py test --slowest --testr-args='{posargs}' |
|
|
|
commands = stestr run {posargs} |
|
|
|
stestr slowest |
|
|
|
|
|
|
|
[nodeenv] |
|
|
|
install_command = bash tools/pip.sh {opts} {packages} |
|
|
@ -43,8 +47,13 @@ commands = |
|
|
|
|
|
|
|
[testenv:cover] |
|
|
|
install_command = {[nodeenv]install_command} |
|
|
|
setenv = |
|
|
|
{[testenv]setenv} |
|
|
|
commands = |
|
|
|
python setup.py test --coverage |
|
|
|
stestr run {posargs} |
|
|
|
coverage combine |
|
|
|
coverage html -d cover |
|
|
|
coverage xml -o cover/coverage.xml |
|
|
|
|
|
|
|
[testenv:docs] |
|
|
|
commands = |
|
|
@ -54,17 +63,13 @@ commands = |
|
|
|
commands = {posargs} |
|
|
|
|
|
|
|
[testenv:nodepool] |
|
|
|
setenv = |
|
|
|
OS_TEST_PATH = ./tests/nodepool |
|
|
|
install_command = {[nodeenv]install_command} |
|
|
|
commands = python setup.py test --slowest --testr-args='--concurrency=1 {posargs}' |
|
|
|
commands = stestr run --concurrency=1 --test-path ./tests/nodepool {posargs} |
|
|
|
|
|
|
|
[testenv:remote] |
|
|
|
setenv = |
|
|
|
OS_TEST_PATH = ./tests/remote |
|
|
|
commands = stestr run --concurrency=1 --test-path ./tests/remote {posargs} |
|
|
|
passenv = ZUUL_TEST_ROOT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_LOG_DEFAULTS ZUUL_REMOTE_IPV4 ZUUL_SSH_KEY NODEPOOL_ZK_HOST |
|
|
|
install_command = {[nodeenv]install_command} |
|
|
|
commands = python setup.py test --slowest --testr-args='--concurrency=1 {posargs}' |
|
|
|
|
|
|
|
[flake8] |
|
|
|
# These are ignored intentionally in openstack-infra projects; |
|
|
|