Merge "Move openstack-doc-build into project-config"

This commit is contained in:
Jenkins 2017-09-16 19:11:35 +00:00 committed by Gerrit Code Review
commit a287ff0fa5
5 changed files with 58 additions and 0 deletions

View 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"

View File

@ -0,0 +1,7 @@
- hosts: all
roles:
- role: bindep
bindep_profile: test
bindep_dir: "src/{{ zuul.project.canonical_name }}"
- revoke-sudo
- ensure-tox

View 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

View 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 }}/"

View File

@ -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.