19ea9dcda2
Add a new script to build release notes including translation, we will run this script as part of each release notes build. The new script will build releasenotes and all translations for them. It checks for available translations and only builds for these. The translated releasenotes are published in-tree, so for trove-dashboard this would publish: /releasenotes/trove-dashboard # Original untranslated content /releasenotes/trove-dashboard/ja/ # Japanese translation /releasenotes/trove-dashboard/ko_KR/ # Korean translation The index file gets automatically enhanced to include links to the translated releasenotes. A preview of the generated release notes are at: http://users.suse.com/~aj/horizon-releasenotes/ http://users.suse.com/~aj/trove-dashboard-releasenotes/ Include the file directly in JJB so that it can be changed anytime. For details, see: http://docs.openstack.org/infra/jenkins-job-builder/definition.html#module-jenkins_jobs.local_yaml This needs a change for jenkins-projects-checks.py: The yaml is now an extented yaml, use the JJB yaml loader to parse it. For now, use a separate job gate-{name}-i18n-releasenotes-nv and add it only to horizon and openstack-manuals so that we can evaluate that this works as expected. A followup will add this for all jobs and the publishing as well. Co-Authored-By: Akihiro Motoki <amotoki@gmail.com> Change-Id: Ic64d571a91bc1bd292d45c0f6ba1a67bfee75997
114 lines
2.7 KiB
INI
114 lines
2.7 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = linters,gerrit,grafyaml,jjb,jenkins-project,zuul
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:linters]
|
|
commands =
|
|
{toxinidir}/tools/run-bashate.sh
|
|
flake8
|
|
|
|
[testenv:gerrit]
|
|
deps = PyYAML
|
|
GitPython
|
|
commands =
|
|
{toxinidir}/tools/check_valid_gerrit_projects.py gerrit/projects.yaml gerrit/acls
|
|
{toxinidir}/tools/check_projects_yaml_alphabetized.sh gerrit/projects.yaml
|
|
{toxinidir}/tools/check_valid_gerrit_config.sh gerrit/acls/
|
|
{toxinidir}/tools/check_gerrit_projects_changed.sh
|
|
|
|
[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
|
|
{toxinidir}/tools/check-channels-yaml.sh
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .tox,.test
|
|
ignore = E125,H
|
|
select = H231
|
|
|
|
[testenv:grafyaml]
|
|
basepython = python2.7
|
|
commands = {toxinidir}/tools/grafyaml-validate.sh
|
|
|
|
[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
|
|
|
|
[testenv:jjb]
|
|
basepython = python2.7
|
|
deps = jenkins-job-builder
|
|
whitelist_externals =
|
|
mkdir
|
|
rm
|
|
commands =
|
|
rm -rf {envdir}/tmp
|
|
mkdir -p {envdir}/tmp/jobs
|
|
pip install -U jenkins/modules/jjb_afs
|
|
jenkins-jobs -l debug test -o {envdir}/tmp/jobs jenkins/jobs
|
|
|
|
[testenv:jenkins-project]
|
|
deps =
|
|
PyYAML
|
|
voluptuous
|
|
jenkins-job-builder
|
|
commands =
|
|
{toxinidir}/tools/jenkins-projects-checks.py
|
|
|
|
[testenv:zuul]
|
|
basepython = python2.7
|
|
deps =
|
|
jenkins-job-builder==1.6.1
|
|
zuul
|
|
whitelist_externals =
|
|
rm
|
|
mkdir
|
|
jenkins-jobs
|
|
find
|
|
commands =
|
|
rm -rf {envdir}/tmp
|
|
mkdir -p {envdir}/tmp/jobs
|
|
pip install -U jenkins/modules/jjb_afs
|
|
jenkins-jobs -l debug test -o {envdir}/tmp/jobs jenkins/jobs
|
|
bash -c 'find {envdir}/tmp/jobs -printf "%f\n" > {envdir}/tmp/job-list.txt'
|
|
zuul-server -c tools/zuul.conf-sample -l zuul/layout.yaml -t {envdir}/tmp/job-list.txt
|
|
{toxinidir}/tools/layout-checks.py {envdir}/tmp/job-list.txt
|
|
|
|
[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
|
|
|
|
[testenv:dib]
|
|
deps =
|
|
diskimage-builder
|
|
changedir = {toxinidir}/nodepool
|
|
commands = dib-lint
|
|
|
|
[testenv:nodepool]
|
|
commands = nodepool -c {toxinidir}/nodepool/nodepool.yaml config-validate
|