From 6cdfbef1a757092f7eccd18b360312dd567725fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 24 Mar 2020 14:42:14 +0000 Subject: [PATCH] gitlab: add job for building latest potfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Erik Skultety Signed-off-by: Daniel P. Berrangé --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 882f7685d9..b70aa2367b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -161,3 +161,28 @@ website: expire_in: 30 days paths: - 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