mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
gitlab: add job for building latest potfile
Whenever there is a change to the translatable strings we need to push a new libvirt.pot to weblate. This only needs to be done when code merges into git master, so the job is restricted to that branch. Reviewed-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
74aa4671cc
commit
6cdfbef1a7
@ -161,3 +161,28 @@ website:
|
|||||||
expire_in: 30 days
|
expire_in: 30 days
|
||||||
paths:
|
paths:
|
||||||
- website
|
- website
|
||||||
|
|
||||||
|
|
||||||
|
# This artifact published by this job is downloaded to push to Weblate
|
||||||
|
# for translation usage:
|
||||||
|
# https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?job=potfile
|
||||||
|
potfile:
|
||||||
|
stage: prebuild
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
script:
|
||||||
|
- mkdir build
|
||||||
|
- cd build
|
||||||
|
- ../autogen.sh || (cat config.log && exit 1)
|
||||||
|
- $MAKE -j $(getconf _NPROCESSORS_ONLN) -C src generated-sources
|
||||||
|
- $MAKE -j $(getconf _NPROCESSORS_ONLN) -C po libvirt.pot
|
||||||
|
- cd ..
|
||||||
|
- mv build/po/libvirt.pot libvirt.pot
|
||||||
|
image: quay.io/libvirt/buildenv-libvirt-fedora-31:latest
|
||||||
|
artifacts:
|
||||||
|
expose_as: 'Potfile'
|
||||||
|
name: 'potfile'
|
||||||
|
when: on_success
|
||||||
|
expire_in: 30 days
|
||||||
|
paths:
|
||||||
|
- libvirt.pot
|
||||||
|
Loading…
Reference in New Issue
Block a user