From fab85312b0d63e6769c0b99f3fadc3abfd2211d8 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 5 Dec 2017 11:22:01 -0600 Subject: [PATCH] Add special docs build job The new PTI doesn't work for the way the i18n docs are built. Add a new doc build job that runs tox -edocs for until we figure out a better path to success. Remove the add-marker code since that's done in the doc publication jobs. Also stop rsyncing the code to a different directory, since it'll make the normal build case wrong and is otherwise handled by the publication jobs. Change-Id: I5237e750b4bc4899d71952a14c8d2ca92d9985a0 --- .zuul.yaml | 21 +++++++++++++++++++++ tools/add-marker.sh | 11 ----------- tox.ini | 7 ------- 3 files changed, 21 insertions(+), 18 deletions(-) create mode 100644 .zuul.yaml delete mode 100755 tools/add-marker.sh diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..cf5ba15 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,21 @@ +- job: + name: build-i18n-docs + description: | + openstack/i18n has a special doc build that does not match the normal + OpenStack PTI. + parent: tox-docs + vars: + tox_envlist: docs + tox_constraints_file: '{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt' + required-projects: + - openstack/requirements + success-url: html/ + +- project: + name: openstack/i18n + check: + jobs: + - build-i18n-docs + gate: + jobs: + - build-i18n-docs diff --git a/tools/add-marker.sh b/tools/add-marker.sh deleted file mode 100755 index ff99ecb..0000000 --- a/tools/add-marker.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -if [[ $# != 1 ]] ; then - echo "Pass directory to add marker to as single paramter" - exit 1 -fi - -# This marker is needed for infra publishing -MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID" - -echo $MARKER_TEXT > $1/.root-marker diff --git a/tox.ini b/tox.ini index aef5c3e..82f921f 100644 --- a/tox.ini +++ b/tox.ini @@ -23,13 +23,6 @@ commands = doc8 doc/source # Build translated guides {toxinidir}/tools/build-docs.sh - # Publish - mkdir -p publish-docs/i18n/latest - rsync -av --delete doc/build/html/ publish-docs/i18n/latest/ - {toxinidir}/tools/add-marker.sh publish-docs/i18n/latest/ -whitelist_externals = - mkdir - rsync [testenv:pep8] commands =