c28da01f91
Since both pep8 and bashate are voting, we can merge the two lint targets into the "common" pep8 lint target. There's no need for a separate bashate run. This change is the second part for this. Since the jobs are changed, we can now remove the obsolete bashate tox.ini target. Change-Id: I572ba3fe8b3a9a05f5239a858d2f701bfd8f684d
77 lines
1.5 KiB
INI
77 lines
1.5 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = pep8,gerrit,projects,jjb,jenkins-project,zuul
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8
|
|
{toxinidir}/tools/run-bashate.sh
|
|
|
|
[testenv:gerrit]
|
|
commands =
|
|
{toxinidir}/tools/check_valid_gerrit_config.sh gerrit/acls/
|
|
|
|
[testenv:projects]
|
|
deps = PyYAML
|
|
commands =
|
|
{toxinidir}/tools/check_valid_gerrit_projects.py gerrit/projects.yaml
|
|
{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
|
|
commands =
|
|
{toxinidir}/tools/check_irc_access.py -l accessbot/channels.yaml openstackinfra
|
|
{toxinidir}/tools/irc_tests.py
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .tox,.test
|
|
ignore = E125,H
|
|
select = H231
|
|
|
|
[testenv:jjb]
|
|
basepython = python2.7
|
|
deps = jenkins-job-builder
|
|
whitelist_externals =
|
|
mkdir
|
|
rm
|
|
commands =
|
|
rm -rf {envdir}/tmp
|
|
mkdir -p {envdir}/tmp
|
|
jenkins-jobs -l debug test -o {envdir}/tmp jenkins/jobs
|
|
|
|
[testenv:jenkins-project]
|
|
deps =
|
|
commands =
|
|
{toxinidir}/tools/jenkins-projects-checks.py
|
|
|
|
[testenv:zuul]
|
|
basepython = python2.7
|
|
deps = PyYAML
|
|
commands =
|
|
{toxinidir}/tools/run-layout.sh
|
|
{toxinidir}/tools/layout-checks.py
|
|
|
|
[testenv:infra-docs]
|
|
deps =
|
|
Jinja2
|
|
PyYAML
|
|
commands = {toxinidir}/docs-site/generate_infra_index.py {toxinidir}/docs-site/infra-documents.yaml
|
|
|
|
[testenv:specs]
|
|
deps =
|
|
Jinja2
|
|
PyYAML
|
|
commands = {toxinidir}/specs/generate_specs_site.py {toxinidir}/specs/specs.yaml
|