system-config/tox.ini
K Jonathan Harker 8ff2dbe1c3 Start running bashate on config (nonvoting)
Add bashate to test-requirements.txt, add a tox env for bashate,  and start
running it on config. Also convert devstack to run bashate via tox rather than
via run_tests.sh (the needed tox.ini changes to devstack have already merged).

Change-Id: I205d675ff231c0403dd135eacc8d57b45317859f
2014-09-02 15:50:33 -07:00

59 lines
1.4 KiB
INI

[tox]
minversion = 1.6
envlist = pep8,upstream,projects_alphabetized
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8
[testenv:projects]
deps = PyYAML
commands =
{toxinidir}/tools/check_upstream_url_scheme.py modules/openstack_project/files/review.projects.yaml
{toxinidir}/tools/check_projects_yaml_alphabetized.sh
[testenv:upstream]
deps = PyYAML
commands =
{toxinidir}/tools/check_upstream_url_scheme.py -v modules/openstack_project/files/review.projects.yaml
[testenv:projects_alphabetized]
commands = {toxinidir}/tools/check_projects_yaml_alphabetized.sh
[testenv:venv]
commands = {posargs}
[testenv:irc]
deps = PyYAML
irc
commands = python modules/accessbot/files/checkaccess.py -l modules/openstack_project/files/accessbot/channels.yaml openstackinfra
[flake8]
show-source = True
exclude = .tox
ignore = E125,H
select = H231
[testenv:jjb]
basepython = python2.7
deps = jenkins-job-builder
commands =
rm -rf {envdir}/tmp
mkdir -p {envdir}/tmp
jenkins-jobs -l debug test -o {envdir}/tmp modules/openstack_project/files/jenkins_job_builder/config
[testenv:zuul]
basepython = python2.7
deps =
commands =
{toxinidir}/tools/check_projects_yaml_alphabetized.sh
{toxinidir}/tools/run-layout.sh openstack-infra config
[testenv:bashate]
commands = bashate -v