Merge "Move openstack-doc-build into project-config"
This commit is contained in:
commit
a287ff0fa5
6
playbooks/openstack-doc-build/post.yaml
Normal file
6
playbooks/openstack-doc-build/post.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- fetch-tox-output
|
||||
- role: fetch-sphinx-output
|
||||
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
|
||||
zuul_executor_dest: "{{ zuul.executor.work_root }}/docs-draft"
|
7
playbooks/openstack-doc-build/pre.yaml
Normal file
7
playbooks/openstack-doc-build/pre.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: bindep
|
||||
bindep_profile: test
|
||||
bindep_dir: "src/{{ zuul.project.canonical_name }}"
|
||||
- revoke-sudo
|
||||
- ensure-tox
|
6
playbooks/openstack-doc-build/run.yaml
Normal file
6
playbooks/openstack-doc-build/run.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: tox
|
||||
tox_upper_constraints_file: "{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt"
|
||||
tox_envlist: venv
|
||||
tox_extra_args: -vv python setup.py build_sphinx
|
22
playbooks/publish/openstack-docs-draft.yaml
Normal file
22
playbooks/publish/openstack-docs-draft.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: add-fileserver
|
||||
fileserver: "{{ site_docs_draft }}"
|
||||
|
||||
- hosts: "{{ fileserver.fqdn }}"
|
||||
gather_facts: False
|
||||
tasks:
|
||||
- include_role:
|
||||
name: set-zuul-log-path-fact
|
||||
|
||||
- name: Create docs directories
|
||||
file:
|
||||
path: "{{ fileserver.path }}/{{ zuul_log_path }}"
|
||||
state: directory
|
||||
recurse: yes
|
||||
mode: 0775
|
||||
|
||||
- name: Upload docs to log site_docs_draft
|
||||
synchronize:
|
||||
src: "{{ zuul.executor.work_root }}/docs-draft/"
|
||||
dest: "{{ fileserver.path }}/{{ zuul_log_path }}/"
|
17
zuul.yaml
17
zuul.yaml
@ -391,6 +391,23 @@
|
||||
name: pypi_info
|
||||
- gpg_key
|
||||
|
||||
- job:
|
||||
name: openstack-doc-build
|
||||
pre-run: playbooks/python-docs/pre
|
||||
run: playbooks/python-docs/run
|
||||
post-run:
|
||||
- playbooks/python-docs/post
|
||||
- playbooks/publish/openstack-docs-draft
|
||||
required-projects:
|
||||
- name: openstack/requirements
|
||||
roles:
|
||||
- zuul: openstack-infra/zuul-jobs
|
||||
secrets:
|
||||
- secret: site_docs_draft
|
||||
name: fileserver
|
||||
vars:
|
||||
tox_constraints_file: "{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt"
|
||||
|
||||
# NOTE(pabelanger): We have related untrusted job in openstack-zuul-jobs called
|
||||
# openstack-doc-build. We should discuss post PTG how to potentially deal with
|
||||
# duplication.
|
||||
|
Loading…
x
Reference in New Issue
Block a user