Files
11b337c23d3fe844f6994e81a62e30fa486df254
networking-bgpvpn /tox.ini

118 lines
3.6 KiB
INI
Raw Normal View History

minversion = 1.6
[testenv]
usedevelop = True
VIRTUAL_ENV={envdir}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/doc/requirements.txt
{[testenv]deps}
flake8
pylint --rcfile=.pylintrc --output-format=colorized doc/source/samples
setenv = OS_FAIL_ON_MISSING_DEPS=1
OS_LOG_PATH={env:OS_LOG_PATH:/opt/stack/logs}
[testenv:functional]
setenv = {[testenv]setenv}
OS_TEST_TIMEOUT=180
OS_TEST_PATH=./networking_bgpvpn/tests/functional
OS_LOG_PATH={env:OS_LOG_PATH:/opt/stack/logs}
deps =
{[testenv]deps}
-r{toxinidir}/networking_bgpvpn/tests/functional/requirements.txt
commands =
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
[testenv:dsvm-functional]
basepython = python2.7
setenv = {[testenv:functional]setenv}
{[testenv:dsvm]setenv}
sitepackages=True
deps =
{[testenv:functional]deps}
commands =
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
# TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc
[testenv:api]
sitepackages = True
passenv = TEMPEST_CONFIG_DIR
setenv =
OS_TEST_PATH={toxinidir}/networking_bgpvpn_tempest/tests/api
OS_TESTR_CONCURRENCY=1
# If you are running the tests locally you should set the env variable
# TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc
[testenv:scenario]
sitepackages = True
passenv = TEMPEST_CONFIG_DIR
setenv =
OS_TEST_PATH={toxinidir}/networking_bgpvpn_tempest/tests/scenario
OS_TESTR_CONCURRENCY=1
setenv = OS_FAIL_ON_MISSING_DEPS=1
commands = {posargs}
[testenv:cover]
commands =
python setup.py test --coverage --coverage-package-name=networking_bgpvpn --omit="*/tests/*" --testr-args='{posargs}'
coverage report --omit="*/tests/*" -m
[testenv:docs]
-r{toxinidir}/doc/requirements.txt
commands = python setup.py build_sphinx
[testenv:debug]
commands = {toxinidir}/tools/generate_config_file_samples.sh
show-source = True
# N530 direct neutron imports not allowed
ignore = E123,E125,N530
[hacking]
local-check-factory = neutron_lib.hacking.checks.factory
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt