File: zuul_docs.yaml

package info (click to toggle)
python-ara 1.5.8-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,460 kB
  • sloc: python: 6,493; sh: 215; makefile: 15; javascript: 2
file content (40 lines) | stat: -rw-r--r-- 1,206 bytes parent folder | download
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
# Copyright (c) 2022 The ARA Records Ansible authors
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

- name: Build documentation for testing with Zuul
  hosts: all
  gather_facts: yes
  vars:
    zuul_work_dir: "{{ ansible_user_dir }}/src/github.com/ansible-community/ara"
  tasks:
    - name: Ensure tox is installed
      become: yes
      package:
        name: tox
        state: present

    - name: Build documentation
      command: tox -e docs
      args:
        chdir: "{{ zuul_work_dir }}"

    # The zuul-output directory is retrieved by the fetch-output role
    # https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/fetch-output
    - name: Create log directory
      file:
        path: "{{ ansible_user_dir }}/zuul-output/logs"
        state: directory
        recurse: yes

    - name: Recover docs build
      command: cp -rp doc/build/html {{ ansible_user_dir }}/zuul-output/logs/docs
      args:
        chdir: "{{ zuul_work_dir }}"

    - name: Link the static report to the Zuul build
      zuul_return:
        data:
          zuul:
            artifacts:
               - name: Docs build
                 url: "docs/index.html"