Fix translation scripts

The translation scripts need sudo, we cannot use the release notes
pre.yaml which revokes sudo. Instead, create our own pre script and use
it.

Use .venv/bin for sphinx-build since that's where the current role in
openstack-zuul-jobs puts the content.

Depends-On: I23ae1ed7abe7f36d46aae3d72293210ca2a8c0e6
Change-Id: Ia7427bef0408bc5138b6f2a0eb30713ce8fd379d
This commit is contained in:
Andreas Jaeger 2017-11-18 14:35:03 +01:00
parent bad191ad6c
commit 67c123ea99
3 changed files with 6 additions and 3 deletions

View File

@ -428,7 +428,7 @@ function extract_messages_releasenotes {
local keep_workdir=$1
# Extract messages
sphinx-build -b gettext -d releasenotes/build/doctrees \
.venv/bin/sphinx-build -b gettext -d releasenotes/build/doctrees \
releasenotes/source releasenotes/work
rm -rf releasenotes/build
# Concatenate messages into one POT file

View File

@ -0,0 +1,3 @@
- hosts: all
roles:
- ensure-reno

View File

@ -903,7 +903,7 @@
- job:
name: upstream-translation-update
parent: propose-updates
pre-run: playbooks/releasenotes/pre.yaml
pre-run: playbooks/translation/pre.yaml
run: playbooks/translation/upstream-translation-update.yaml
post-run: playbooks/publish/openstack-artifacts.yaml
semaphore: translations
@ -919,7 +919,7 @@
- job:
name: propose-translation-update
parent: propose-updates
pre-run: playbooks/releasenotes/pre.yaml
pre-run: playbooks/translation/pre.yaml
run: playbooks/translation/propose-translation-update.yaml
semaphore: translations
required-projects: