-
Notifications
You must be signed in to change notification settings - Fork 255
/
.zuul.yaml
108 lines (99 loc) · 2.93 KB
/
.zuul.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Shared Zuul v3 definitions for OpenStack CI.
# These jobs are used in api-site, openstack-manuals, and security-doc
# repositories.
- job:
name: build-tox-manuals-base
abstract: true
description: |
Base job to build manual related documents. These build jobs
invoke a tox command and expect the published content to be in
publish-docs/html directory. This content is published on the root of
the website.
Note that this build job does not create a root-marker file,
this has to be done by scripts called from tox.
parent: opendev-tox-docs
nodeset: ubuntu-jammy
roles:
- zuul: zuul/zuul-jobs
vars:
sphinx_build_dir: 'publish-docs'
tox_environment:
# The tox job writes the root-marker file directly and thus
# needs the following variables set:
ZUUL_PROJECT: '{{ zuul.project.name }}'
ZUUL_BRANCH: '{{ zuul.branch }}'
ZUUL_UUID: '{{ zuul.build }}'
ZUUL_NEWREF: '{{ zuul.ref }}'
- job:
name: build-tox-manuals-publishdocs
parent: build-tox-manuals-base
description: |
Build manuals using "publishdocs" tox environment.
vars:
tox_envlist: publishdocs
- job:
name: build-tox-manuals-publishlang
parent: build-tox-manuals-base
description: |
Build translated manuals using "publishlang" tox environment.
vars:
tox_envlist: publishlang
ensure_global_symlinks: true
files: &files-publishlang
- ^.*\.po$
- ^.*\.pot$
- ^.*requirements.txt$
- ^bindep.txt
- ^doc-tools-check-languages.conf
- ^tools/
- ^tox.ini
# Templates to easily group jobs.
- project-template:
name: openstack-manuals-jobs
description: |
Runs jobs for non-translated documents.
check:
jobs:
- openstack-tox-linters
- build-tox-manuals-publishdocs
gate:
jobs:
- openstack-tox-linters
- build-tox-manuals-publishdocs
promote:
jobs:
- promote-openstack-manuals
- project-template:
name: openstack-manuals-developer-jobs
description: |
Runs jobs for non-translated documents.
This will publish content to developer.openstack.org.
check:
jobs:
- build-tox-manuals-publishdocs
gate:
jobs:
- build-tox-manuals-publishdocs
promote:
jobs:
- promote-openstack-manuals-developer
- project-template:
name: openstack-manuals-build-translation
description: |
Runs jobs to build translated documents.
check:
jobs:
- build-tox-manuals-publishlang
gate:
jobs:
- build-tox-manuals-publishlang
promote:
jobs:
- promote-openstack-manuals-lang:
files: *files-publishlang
# Configuration for this repository, determines which jobs to run.
- project:
templates:
- openstack-manuals-build-translation
- openstack-manuals-jobs
- release-notes-jobs-python3