2014-09-25 15:56:46 +00:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2015-12-21 19:45:31 +00:00
|
|
|
envlist = linters,gerrit,grafyaml,projects,jjb,jenkins-project,zuul
|
2014-09-25 15:56:46 +00:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
|
2015-12-21 19:45:31 +00:00
|
|
|
[testenv:linters]
|
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/run-bashate.sh
|
|
|
|
flake8
|
|
|
|
|
2014-12-09 20:10:41 +00: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
|
2015-10-21 18:02:19 +00:00
|
|
|
GitPython
|
2014-09-25 15:56:46 +00:00
|
|
|
commands =
|
2016-04-11 14:25:25 +00:00
|
|
|
{toxinidir}/tools/check_valid_gerrit_projects.py gerrit/projects.yaml gerrit/acls
|
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-11-18 21:15:03 +00:00
|
|
|
jaraco.itertools<1.6
|
2015-03-06 09:39:45 +00:00
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/check_irc_access.py -l accessbot/channels.yaml openstackinfra
|
|
|
|
{toxinidir}/tools/irc_tests.py
|
2015-09-28 21:05:37 +00:00
|
|
|
{toxinidir}/tools/check-channels-yaml.sh
|
2014-09-25 15:56:46 +00:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2014-09-29 14:44:17 +00:00
|
|
|
exclude = .tox,.test
|
2014-09-25 15:56:46 +00:00
|
|
|
ignore = E125,H
|
|
|
|
select = H231
|
|
|
|
|
2015-09-17 17:19:17 +00:00
|
|
|
[testenv:grafyaml]
|
|
|
|
basepython = python2.7
|
2016-01-07 23:24:30 +00:00
|
|
|
commands = {toxinidir}/tools/grafyaml-validate.sh
|
2015-09-17 17:19:17 +00:00
|
|
|
|
2016-05-29 00:39:04 +00:00
|
|
|
[testenv:bindep]
|
|
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
|
|
# separately, outside of the requirements files.
|
|
|
|
deps = bindep
|
|
|
|
commands = bindep test
|
|
|
|
|
2014-09-25 15:56:46 +00:00
|
|
|
[testenv:jjb]
|
|
|
|
basepython = python2.7
|
|
|
|
deps = jenkins-job-builder
|
2014-09-29 18:00:46 +00: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 17:51:02 +00:00
|
|
|
[testenv:jenkins-project]
|
|
|
|
deps =
|
2015-11-16 23:25:24 +00:00
|
|
|
PyYAML
|
|
|
|
voluptuous
|
2014-10-03 17:51:02 +00:00
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/jenkins-projects-checks.py
|
|
|
|
|
2014-09-25 15:56:46 +00:00
|
|
|
[testenv:zuul]
|
|
|
|
basepython = python2.7
|
2014-11-27 16:34:55 +00:00
|
|
|
deps = PyYAML
|
2014-09-25 15:56:46 +00:00
|
|
|
commands =
|
2014-09-29 14:44:17 +00:00
|
|
|
{toxinidir}/tools/run-layout.sh
|
2014-09-27 12:41:50 +00: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 16:50:12 +00:00
|
|
|
|
2014-12-11 21:22:48 +00:00
|
|
|
[testenv:specs]
|
|
|
|
deps =
|
|
|
|
Jinja2
|
|
|
|
PyYAML
|
|
|
|
commands = {toxinidir}/specs/generate_specs_site.py {toxinidir}/specs/specs.yaml
|
2015-10-01 05:12:51 +00:00
|
|
|
|
|
|
|
[testenv:dib]
|
|
|
|
deps =
|
|
|
|
diskimage-builder
|
|
|
|
changedir = {toxinidir}/nodepool
|
|
|
|
commands = dib-lint
|
Add script to facilitate project renaming in project-config repo
This takes a list of projects from stdin in the format of
aeromancer
anvil
blazar
and renames stackforge/aeromancer, stackforge/anvil, and stackforge/blazar
to openstack/aeromancer, openstack/anvil, and openstack/blazar respectively
in gerrit/projects.yaml, gerritbot/channels.yaml, zuul/layout.html,
and every file in jenkins/jobs/ , as well as renaming acl files.
A side effect of this process is that comments will be stripped from
gerritbot/channels.yaml ; if you are committing the results of a run of
this script, please re-add the comments manually unless we come up with
a more elegant solution.
This script also has test coverage for verification and documentation.
Also included is a WIP list of renames in data/stackforge-renames, as
per
http://eavesdrop.openstack.org/irclogs/%23openstack-infra/%23openstack-infra.2015-10-13.log.html#t2015-10-13T20:10:17
and a WIP list of retirements in data/stackforge-retirements, which
is not used by the script in this change.
Co-Authored-By: Augustina Ragwitz <aragwitz+lp@pobox.com>
Change-Id: Iaf2a13d8b9b9a840d9fde07ec1ef65d1c9e90e8e
2015-09-25 18:56:57 +00:00
|
|
|
|
2015-10-29 08:32:57 +00:00
|
|
|
[testenv:nodepool]
|
|
|
|
commands = nodepool -c {toxinidir}/nodepool/nodepool.yaml config-validate
|