|
|
|
@ -17,7 +17,8 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
find . -type d -name "__pycache__" -delete
|
|
|
|
|
python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
|
stestr run {posargs}
|
|
|
|
|
stestr slowest
|
|
|
|
|
|
|
|
|
|
[testenv:debug]
|
|
|
|
|
commands = oslo_debug_helper -t kolla/tests {posargs}
|
|
|
|
@ -29,8 +30,13 @@ setenv = VIRTUAL_ENV={envdir}
|
|
|
|
|
NOSE_COVER_BRANCHES=1
|
|
|
|
|
NOSE_COVER_HTML=1
|
|
|
|
|
NOSE_COVER_HTML_DIR={toxinidir}/cover
|
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
coverage report --show-missing
|
|
|
|
|
PYTHON=coverage run --source kolla --parallel-mode
|
|
|
|
|
commands =
|
|
|
|
|
stestr run {posargs}
|
|
|
|
|
coverage combine
|
|
|
|
|
coverage html -d cover
|
|
|
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
|
coverage report --show-missing
|
|
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
|
basepython = python3
|
|
|
|
@ -81,8 +87,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.BuildTestCentosBinary
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.BuildTestCentosBinary
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
|
[testenv:build-centos-source]
|
|
|
|
@ -92,8 +98,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.BuildTestCentosSource
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.BuildTestCentosSource
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
|
[testenv:build-ubuntu-binary]
|
|
|
|
@ -103,8 +109,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.BuildTestUbuntuBinary
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.BuildTestUbuntuBinary
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
|
[testenv:build-ubuntu-source]
|
|
|
|
@ -114,8 +120,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.BuildTestUbuntuSource
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.BuildTestUbuntuSource
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
|
[testenv:build-debian-binary]
|
|
|
|
@ -125,8 +131,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.BuildTestDebianBinary
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.BuildTestDebianBinary
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
|
[testenv:build-debian-source]
|
|
|
|
@ -136,8 +142,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.BuildTestDebianSource
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.BuildTestDebianSource
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
|
[testenv:build-oraclelinux-binary]
|
|
|
|
@ -147,8 +153,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.BuildTestOracleLinuxBinary
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.BuildTestOracleLinuxBinary
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
|
[testenv:build-oraclelinux-source]
|
|
|
|
@ -158,8 +164,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.BuildTestOracleLinuxSource
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.BuildTestOracleLinuxSource
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
|
[testenv:deploy-centos-binary]
|
|
|
|
@ -169,8 +175,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.DeployTestCentosBinary
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.DeployTestCentosBinary
|
|
|
|
|
{toxinidir}/tools/deploy_aio.sh centos binary
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
@ -181,8 +187,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.DeployTestCentosSource
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.DeployTestCentosSource
|
|
|
|
|
{toxinidir}/tools/deploy_aio.sh centos source
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
@ -193,8 +199,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.DeployTestOracleLinuxBinary
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.DeployTestOracleLinuxBinary
|
|
|
|
|
{toxinidir}/tools/deploy_aio.sh oraclelinux binary
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
@ -205,8 +211,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.DeployTestOracleLinuxSource
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.DeployTestOracleLinuxSource
|
|
|
|
|
{toxinidir}/tools/deploy_aio.sh oraclelinux source
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
@ -217,8 +223,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.DeployTestUbuntuBinary
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.DeployTestUbuntuBinary
|
|
|
|
|
{toxinidir}/tools/deploy_aio.sh ubuntu binary
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
@ -229,8 +235,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.DeployTestUbuntuSource
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.DeployTestUbuntuSource
|
|
|
|
|
{toxinidir}/tools/deploy_aio.sh ubuntu source
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
@ -241,8 +247,8 @@ setenv =
|
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
|
commands =
|
|
|
|
|
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
|
testr run test_build.BuildTestUbuntuSource
|
|
|
|
|
bash -c "if [ ! -d .stestr ]; then stestr init; fi"
|
|
|
|
|
stestr run test_build.BuildTestUbuntuSource
|
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
|
|
[testenv:genconfig]
|
|
|
|
|