2014-10-03 09:26:36 +00:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2015-03-28 10:08:33 -07:00
|
|
|
skipsdist = True
|
2016-01-14 10:09:12 +05:30
|
|
|
envlist = py34,py27,pep8,pypy
|
2014-10-03 09:26:36 +00:00
|
|
|
|
|
|
|
[testenv]
|
2015-12-30 18:49:56 +08:00
|
|
|
usedevelop=True
|
2016-01-08 19:18:56 +08:00
|
|
|
whitelist_externals = find
|
2015-07-10 14:13:47 -07:00
|
|
|
install_command = pip install -U {opts} {packages}
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2015-12-11 09:17:42 +09:00
|
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
2016-01-14 15:31:41 +08:00
|
|
|
OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_TEST_TIMEOUT
|
|
|
|
PYTHON OS_TEST_PATH LISTOPT IDOPTION
|
2016-01-08 19:18:56 +08: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-01-13 16:44:11 +00:00
|
|
|
[testenv:linters]
|
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/run-bashate.sh
|
|
|
|
flake8 {posargs}
|
|
|
|
|
2014-10-03 21:05:00 +02:00
|
|
|
[testenv:pep8]
|
2015-03-28 10:08:33 -07:00
|
|
|
commands =
|
2015-12-30 21:33:06 +08:00
|
|
|
flake8
|
2015-03-28 10:08:33 -07:00
|
|
|
|
2015-09-03 00:15:54 +00:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2015-08-28 01:38:42 +00:00
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2015-07-06 16:23:36 -07:00
|
|
|
[testenv:validate-contents]
|
|
|
|
commands =
|
2015-12-30 21:33:06 +08:00
|
|
|
{toxinidir}/tools/validate-all-json.sh
|
|
|
|
{toxinidir}/tools/validate-all-yaml.sh
|
|
|
|
{toxinidir}/tools/validate-all-maintainer.sh
|
2015-07-06 16:23:36 -07:00
|
|
|
|
2015-03-28 10:08:33 -07:00
|
|
|
[testenv:bashate]
|
|
|
|
commands =
|
2016-01-13 16:44:11 +00:00
|
|
|
{toxinidir}/tools/run-bashate.sh
|
2015-03-28 10:08:33 -07:00
|
|
|
|
|
|
|
[testenv:setupenv]
|
|
|
|
whitelist_externals = bash
|
2015-05-14 21:15:40 -07:00
|
|
|
commands = bash -c tests/setup_gate.sh
|
2015-03-28 10:08:33 -07:00
|
|
|
|
2015-11-11 15:44:56 +00:00
|
|
|
[testenv:build-centos-binary]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 19:18:56 +08:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 21:33:06 +08:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-01-08 19:18:56 +08:00
|
|
|
sudo -E -g docker testr run test_build.BuildTestCentosBinary
|
2015-11-11 15:44:56 +00:00
|
|
|
|
|
|
|
[testenv:build-centos-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 19:18:56 +08:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 21:33:06 +08:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-01-08 19:18:56 +08:00
|
|
|
sudo -E -g docker testr run test_build.BuildTestCentosSource
|
2015-11-11 15:44:56 +00:00
|
|
|
|
|
|
|
[testenv:build-ubuntu-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 19:18:56 +08:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 21:33:06 +08:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-01-08 19:18:56 +08:00
|
|
|
sudo -E -g docker testr run test_build.BuildTestUbuntuSource
|
2015-11-11 15:44:56 +00:00
|
|
|
|
|
|
|
[testenv:deploy-centos-binary]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 19:18:56 +08:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 21:33:06 +08:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-01-08 19:18:56 +08:00
|
|
|
sudo -E -g docker testr run test_build.DeployTestCentosBinary
|
2015-12-30 21:33:06 +08:00
|
|
|
sudo tests/deploy_aio.sh centos binary
|
2015-11-11 15:44:56 +00:00
|
|
|
|
|
|
|
[testenv:deploy-centos-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 19:18:56 +08:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 21:33:06 +08:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-01-08 19:18:56 +08:00
|
|
|
sudo -E -g docker testr run test_build.DeployTestCentosSource
|
2015-12-30 21:33:06 +08:00
|
|
|
sudo tests/deploy_aio.sh centos source
|
2015-11-11 15:44:56 +00:00
|
|
|
|
|
|
|
[testenv:deploy-ubuntu-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 19:18:56 +08:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 21:33:06 +08:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-01-08 19:18:56 +08:00
|
|
|
sudo -E -g docker testr run test_build.DeployTestUbuntuSource
|
2015-12-30 21:33:06 +08:00
|
|
|
sudo tests/deploy_aio.sh ubuntu source
|
2015-11-11 15:44:56 +00:00
|
|
|
|
|
|
|
[testenv:deploy-multinode-ubuntu-source]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
sudo
|
2016-01-08 19:18:56 +08:00
|
|
|
setenv =
|
|
|
|
DOCKER_BUILD_TEST=1
|
2015-11-11 15:44:56 +00:00
|
|
|
commands =
|
2015-12-30 21:33:06 +08:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2016-01-08 19:18:56 +08:00
|
|
|
sudo -E -g docker testr run test_build.BuildTestUbuntuSource
|
2015-11-11 15:44:56 +00:00
|
|
|
|
2015-12-30 18:49:56 +08:00
|
|
|
[testenv:genconfig]
|
|
|
|
whitelist_externals = which
|
|
|
|
commands=
|
|
|
|
oslo-config-generator --config-file etc/oslo-config-generator/kolla-build.conf
|
|
|
|
|
2015-07-10 14:13:47 -07:00
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2015-12-21 17:04:09 +00:00
|
|
|
exclude=.eggs,.git,.tox,doc
|