Merge "Add special docs build job"

This commit is contained in:
Zuul 2017-12-06 00:34:59 +00:00 committed by Gerrit Code Review
commit a34882d078
3 changed files with 21 additions and 18 deletions

21
.zuul.yaml Normal file
View File

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

View File

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

View File

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