2014-10-03 09:26:36 +00:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2015-03-28 10:08:33 -07:00
|
|
|
skipsdist = True
|
2015-07-10 14:13:47 -07:00
|
|
|
envlist = functional,pep8
|
2014-10-03 09:26:36 +00:00
|
|
|
|
|
|
|
[testenv]
|
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
|
2014-10-03 09:26:36 +00:00
|
|
|
|
2014-10-03 21:05:00 +02:00
|
|
|
[testenv:pep8]
|
2015-03-28 10:08:33 -07:00
|
|
|
commands =
|
2015-07-10 14:13:47 -07:00
|
|
|
flake8
|
2015-03-28 10:08:33 -07:00
|
|
|
|
2015-07-06 16:23:36 -07:00
|
|
|
[testenv:validate-contents]
|
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/validate-all-json.sh
|
|
|
|
{toxinidir}/tools/validate-all-yaml.sh
|
|
|
|
{toxinidir}/tools/validate-all-maintainer.sh
|
|
|
|
{toxinidir}/tools/validate-links.sh
|
|
|
|
|
2015-03-28 10:08:33 -07:00
|
|
|
[testenv:bashate]
|
|
|
|
deps = bashate
|
|
|
|
whitelist_externals = bash
|
|
|
|
# tox improperly interprets # and {1} in regex, so match on [[:punct:]]+
|
|
|
|
commands =
|
2015-05-28 09:16:20 -07:00
|
|
|
bash -c "files=`egrep -rlI --exclude-dir .git --exclude-dir .tox '^[[:punct:]]+!/(bin/|/usr/bin/env )(ba)?sh' .` && bashate $files"
|
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
|
|
|
|
|
|
|
[testenv:images]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
2015-05-14 21:15:40 -07:00
|
|
|
sudo
|
2015-03-28 10:08:33 -07:00
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
2015-05-14 21:15:40 -07:00
|
|
|
sudo -g dockerroot testr run ^(test_images).*
|
2015-03-28 10:08:33 -07:00
|
|
|
|
|
|
|
[testenv:startenv]
|
|
|
|
whitelist_externals = bash
|
|
|
|
commands =
|
|
|
|
bash -c tools/genenv
|
2015-07-27 12:13:53 +05:30
|
|
|
sudo tools/kolla-compose start
|
2015-03-28 10:08:33 -07:00
|
|
|
# this can be improved after https://review.openstack.org/#/c/180729/
|
|
|
|
# tools/test-deploy
|
|
|
|
|
|
|
|
[testenv:functional]
|
|
|
|
whitelist_externals = find
|
|
|
|
bash
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
|
|
|
|
testr run ^(?!test_images).*
|
2015-07-10 14:13:47 -07:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2015-08-03 07:50:01 +00:00
|
|
|
exclude=.git,.tox,doc,ansible/library,docker/centos/binary/kolla-ansible
|