68ded2251f
This reverts commit 1f8c473765
.
Change-Id: I98e7414337d58af0f4819163ee0e88702a52c051
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
- name: Attempt to get warning-is-error from config file
|
|
when: sphinx_warning_is_error is not defined
|
|
sphinx_check_warning_is_error:
|
|
project_dir: "{{ zuul_work_dir }}"
|
|
register: check_result
|
|
|
|
- name: Set sphinx_warning_is_error
|
|
when: sphinx_warning_is_error is not defined
|
|
set_fact:
|
|
sphinx_warning_is_error: "{{ check_result.warning_is_error }}"
|
|
|
|
- name: Run sphinx
|
|
command:
|
|
cmd: >
|
|
{{ zuul_work_virtualenv }}/bin/sphinx-build
|
|
-b {{ item }}
|
|
{% if sphinx_warning_is_error %} -W {% endif %}
|
|
{{ sphinx_source_dir }} {{ sphinx_build_dir }}/{{ item }}
|
|
chdir: "{{ zuul_work_dir }}"
|
|
with_items: "{{ sphinx_builders }}"
|
|
|
|
- name: Check for whereto
|
|
stat:
|
|
path: "{{ zuul_work_virtualenv }}/bin/whereto"
|
|
get_checksum: false
|
|
get_mime: false
|
|
get_md5: false
|
|
register: whereto
|
|
|
|
- name: Check for htaccess
|
|
stat:
|
|
path: "{{ zuul_work_dir }}/{{ sphinx_source_dir }}/_extra/.htaccess"
|
|
get_checksum: false
|
|
get_mime: false
|
|
get_md5: false
|
|
register: htaccess
|
|
|
|
- name: Run whereto
|
|
command:
|
|
cmd: "{{ whereto.stat.path }} {{ sphinx_source_dir }}/_extra/.htaccess doc/test/redirect-tests.txt"
|
|
chdir: "{{ zuul_work_dir }}"
|
|
when:
|
|
- whereto.stat.exists
|
|
- htaccess.stat.exists
|