2014-10-03 09:26:36 +00:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2015-03-28 17:08:33 +00:00
|
|
|
skipsdist = True
|
2016-07-12 15:40:38 +00:00
|
|
|
envlist = py35,py34,py27,pep8,pypy
|
2014-10-03 09:26:36 +00:00
|
|
|
|
|
|
|
[testenv]
|
2015-12-30 10:49:56 +00:00
|
|
|
usedevelop=True
|
2016-01-08 11:18:56 +00:00
|
|
|
whitelist_externals = find
|
2016-03-23 00:11:28 +00:00
|
|
|
rm
|
2015-07-10 21:13:47 +00:00
|
|
|
install_command = pip install -U {opts} {packages}
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2015-12-11 00:17:42 +00:00
|
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
2016-01-14 07:31:41 +00:00
|
|
|
OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_TEST_TIMEOUT
|
|
|
|
PYTHON OS_TEST_PATH LISTOPT IDOPTION
|
2016-01-08 11:18:56 +00:00
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
python setup.py test --slowest --testr-args='{posargs}'
|
2014-10-03 09:26:36 +00:00
|
|
|
|
2016-02-10 20:39:04 +00:00
|
|
|
[testenv:pep8]
|
2016-01-13 16:44:11 +00:00
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/run-bashate.sh
|
|
|
|
flake8 {posargs}
|
2016-01-15 18:53:25 +00:00
|
|
|
{toxinidir}/tools/validate-all-json.sh
|
|
|
|
{toxinidir}/tools/validate-all-yaml.sh
|
2016-05-17 10:09:25 +00:00
|
|
|
{toxinidir}/tools/validate-all-dockerfiles.sh
|
2016-01-13 16:44:11 +00:00
|
|
|
|
2016-03-08 16:50:37 +00:00
|
|
|
[testenv:bandit]
|
2016-08-11 09:48:21 +00:00
|
|
|
commands = bandit -r ansible/library docker kolla tests tools
|
2016-03-08 16:50:37 +00:00
|
|
|
|
2015-09-03 00:15:54 +00:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2015-08-28 01:38:42 +00:00
|
|
|
[testenv:docs]
|
2016-08-04 13:09:10 +00:00
|
|
|
commands =
|
|
|
|
doc8 doc
|
|
|
|
python setup.py build_sphinx
|
2015-08-28 01:38:42 +00:00
|
|
|
|
2015-03-28 17:08:33 +00:00
|
|
|
[testenv:setupenv]
|
2016-01-12 20:52:00 +00:00
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/setup_gate.sh
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
2015-03-28 17:08:33 +00:00
|
|
|
|
2015-11-11 15:44:56 +00:00
|
|
|
[testenv:build-centos-binary]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
2016-01-08 11:18:56 +00:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 13:33:06 +00:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.BuildTestCentosBinary
|
2016-01-12 20:52:00 +00:00
|
|
|
{toxinidir}/tools/dump_info.sh
|
2015-11-11 15:44:56 +00:00
|
|
|
|
|
|
|
[testenv:build-centos-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
2016-01-08 11:18:56 +00:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 13:33:06 +00:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.BuildTestCentosSource
|
2016-01-12 20:52:00 +00:00
|
|
|
{toxinidir}/tools/dump_info.sh
|
2015-11-11 15:44:56 +00:00
|
|
|
|
2016-03-15 14:39:30 +00:00
|
|
|
[testenv:build-ubuntu-binary]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
testr run test_build.BuildTestUbuntuBinary
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
2015-11-11 15:44:56 +00:00
|
|
|
[testenv:build-ubuntu-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
2016-01-08 11:18:56 +00:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 13:33:06 +00:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.BuildTestUbuntuSource
|
2016-01-12 20:52:00 +00:00
|
|
|
{toxinidir}/tools/dump_info.sh
|
2015-11-11 15:44:56 +00:00
|
|
|
|
2016-03-01 15:33:46 +00:00
|
|
|
[testenv:build-oraclelinux-binary]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.BuildTestOracleLinuxBinary
|
2016-03-01 15:33:46 +00:00
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
[testenv:build-oraclelinux-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.BuildTestOracleLinuxSource
|
2016-03-01 15:33:46 +00:00
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
2015-11-11 15:44:56 +00:00
|
|
|
[testenv:deploy-centos-binary]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 11:18:56 +00:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 13:33:06 +00:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.DeployTestCentosBinary
|
2016-01-12 20:52:00 +00:00
|
|
|
sudo {toxinidir}/tools/deploy_aio.sh centos binary
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
2015-11-11 15:44:56 +00:00
|
|
|
|
|
|
|
[testenv:deploy-centos-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 11:18:56 +00:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 13:33:06 +00:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.DeployTestCentosSource
|
2016-01-12 20:52:00 +00:00
|
|
|
sudo {toxinidir}/tools/deploy_aio.sh centos source
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
2015-11-11 15:44:56 +00:00
|
|
|
|
2016-03-01 15:33:46 +00:00
|
|
|
[testenv:deploy-oraclelinux-binary]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.DeployTestOracleLinuxBinary
|
2016-03-01 15:33:46 +00:00
|
|
|
sudo {toxinidir}/tools/deploy_aio.sh oraclelinux binary
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
|
|
|
[testenv:deploy-oraclelinux-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.DeployTestOracleLinuxSource
|
2016-03-01 15:33:46 +00:00
|
|
|
sudo {toxinidir}/tools/deploy_aio.sh oraclelinux source
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
2016-03-15 14:39:30 +00:00
|
|
|
[testenv:deploy-ubuntu-binary]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
testr run test_build.DeployTestUbuntuBinary
|
|
|
|
sudo {toxinidir}/tools/deploy_aio.sh ubuntu binary
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
|
|
|
|
2015-11-11 15:44:56 +00:00
|
|
|
[testenv:deploy-ubuntu-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 11:18:56 +00:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 13:33:06 +00:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.DeployTestUbuntuSource
|
2016-01-12 20:52:00 +00:00
|
|
|
sudo {toxinidir}/tools/deploy_aio.sh ubuntu source
|
|
|
|
{toxinidir}/tools/dump_info.sh
|
2015-11-11 15:44:56 +00:00
|
|
|
|
|
|
|
[testenv:deploy-multinode-ubuntu-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
2016-01-08 11:18:56 +00:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 13:33:06 +00:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-03-26 17:11:32 +00:00
|
|
|
testr run test_build.BuildTestUbuntuSource
|
2016-01-12 20:52:00 +00:00
|
|
|
{toxinidir}/tools/dump_info.sh
|
2015-11-11 15:44:56 +00:00
|
|
|
|
2015-12-30 10:49:56 +00:00
|
|
|
[testenv:genconfig]
|
|
|
|
whitelist_externals = which
|
|
|
|
commands=
|
|
|
|
oslo-config-generator --config-file etc/oslo-config-generator/kolla-build.conf
|
|
|
|
|
2016-03-23 00:11:28 +00:00
|
|
|
[testenv:releasenotes]
|
|
|
|
commands =
|
|
|
|
rm -rf releasenotes/build
|
|
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
2015-07-10 21:13:47 +00:00
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2015-12-21 17:04:09 +00:00
|
|
|
exclude=.eggs,.git,.tox,doc
|
2016-01-19 02:53:32 +00:00
|
|
|
|
|
|
|
[hacking]
|
|
|
|
local-check-factory = kolla.hacking.checks.factory
|