project-config/tox.ini
armando-migliaccio e6573ea752 Add test for validating certain gerrit ACL rules
This patch adds a check for Gerrit ACL configs. In this initial
version, the test being added checks that the config defines
at least one team that acts as a core/admin one.

The current check is intentially pretty loose to ensure some
flexibility.

Currently the check applies to stackforge and openstack-dev only.

Change-Id: I2b04f2d94130699d6fd1c16a9b00b9c81d1ba07d
2014-12-15 23:03:03 -08:00

65 lines
1.3 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
[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 = python tools/check_irc_access.py -l accessbot/channels.yaml openstackinfra
[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]
basepython = python2.7
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:bashate]
commands = {toxinidir}/tools/run-bashate.sh