2014-09-25 15:56:46 +00:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2014-12-09 12:10:41 -08:00
|
|
|
envlist = pep8,gerrit,projects,jjb,jenkins-project,zuul
|
2014-09-25 15:56:46 +00:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
|
|
|
|
[testenv:pep8]
|
2015-03-15 19:18:07 +01:00
|
|
|
commands =
|
|
|
|
flake8
|
|
|
|
{toxinidir}/tools/run-bashate.sh
|
2014-09-25 15:56:46 +00:00
|
|
|
|
2014-12-09 12:10:41 -08:00
|
|
|
[testenv:gerrit]
|
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/check_valid_gerrit_config.sh gerrit/acls/
|
|
|
|
|
2014-09-25 15:56:46 +00:00
|
|
|
[testenv:projects]
|
|
|
|
deps = PyYAML
|
|
|
|
commands =
|
2014-12-03 13:36:13 +01:00
|
|
|
{toxinidir}/tools/check_valid_gerrit_projects.py gerrit/projects.yaml
|
2014-09-25 15:56:46 +00:00
|
|
|
{toxinidir}/tools/check_projects_yaml_alphabetized.sh gerrit/projects.yaml
|
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
|
|
|
[testenv:irc]
|
|
|
|
deps = PyYAML
|
|
|
|
irc
|
2015-03-06 10:39:45 +01:00
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/check_irc_access.py -l accessbot/channels.yaml openstackinfra
|
|
|
|
{toxinidir}/tools/irc_tests.py
|
2014-09-25 15:56:46 +00:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2014-09-29 10:44:17 -04:00
|
|
|
exclude = .tox,.test
|
2014-09-25 15:56:46 +00:00
|
|
|
ignore = E125,H
|
|
|
|
select = H231
|
|
|
|
|
|
|
|
[testenv:jjb]
|
|
|
|
basepython = python2.7
|
|
|
|
deps = jenkins-job-builder
|
2014-09-29 20:00:46 +02:00
|
|
|
whitelist_externals =
|
|
|
|
mkdir
|
|
|
|
rm
|
2014-09-25 15:56:46 +00:00
|
|
|
commands =
|
|
|
|
rm -rf {envdir}/tmp
|
|
|
|
mkdir -p {envdir}/tmp
|
|
|
|
jenkins-jobs -l debug test -o {envdir}/tmp jenkins/jobs
|
|
|
|
|
2014-10-03 19:51:02 +02:00
|
|
|
[testenv:jenkins-project]
|
|
|
|
deps =
|
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/jenkins-projects-checks.py
|
|
|
|
|
2014-09-25 15:56:46 +00:00
|
|
|
[testenv:zuul]
|
|
|
|
basepython = python2.7
|
2014-11-27 11:34:55 -05:00
|
|
|
deps = PyYAML
|
2014-09-25 15:56:46 +00:00
|
|
|
commands =
|
2014-09-29 10:44:17 -04:00
|
|
|
{toxinidir}/tools/run-layout.sh
|
2014-09-27 14:41:50 +02:00
|
|
|
{toxinidir}/tools/layout-checks.py
|
2014-09-25 15:56:46 +00:00
|
|
|
|
2015-04-16 17:05:04 +00:00
|
|
|
[testenv:infra-docs]
|
|
|
|
deps =
|
|
|
|
Jinja2
|
|
|
|
PyYAML
|
|
|
|
commands = {toxinidir}/docs-site/generate_infra_index.py {toxinidir}/docs-site/infra-documents.yaml
|
2015-03-15 17:50:12 +01:00
|
|
|
|
2014-12-11 16:22:48 -05:00
|
|
|
[testenv:specs]
|
|
|
|
deps =
|
|
|
|
Jinja2
|
|
|
|
PyYAML
|
|
|
|
commands = {toxinidir}/specs/generate_specs_site.py {toxinidir}/specs/specs.yaml
|