summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÍñigo Huguet <ihuguet@redhat.com>2023-12-15 22:21:00 +0100
committerÍñigo Huguet <ihuguet@redhat.com>2023-12-18 15:53:16 +0100
commit6a1d81abf750956974fedd2cf6c2ec520af96fd5 (patch)
tree87d9610523ead85b863b856b997663c60637ae82
parent71e9baa65660e407dd1b0b1776c676f55cc7632f (diff)
CI: check for potential translation errorsih/fix_gettext
Some warnings in the generation of the translation files indicate real errors, like strings that cannot be extracted for translations. Check that no warnings are emitted.
-rw-r--r--.gitlab-ci.yml11
-rw-r--r--.gitlab-ci/ci.template1
2 files changed, 7 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c1e9a4c5cf..e13995b3b1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -57,11 +57,11 @@ variables:
#
# This is done by running `ci-fairy generate-template` and possibly bumping
# ".default_tag".
- ALPINE_TAG: 'tag-b51da9e3f95a'
- CENTOS_TAG: 'tag-c89e0aac1363'
- DEBIAN_TAG: 'tag-76973ff363a5'
- FEDORA_TAG: 'tag-c89e0aac1363'
- UBUNTU_TAG: 'tag-76973ff363a5'
+ ALPINE_TAG: 'tag-7da44bbacc09'
+ CENTOS_TAG: 'tag-c8090b8a9a6b'
+ DEBIAN_TAG: 'tag-86a16c2d74d8'
+ FEDORA_TAG: 'tag-c8090b8a9a6b'
+ UBUNTU_TAG: 'tag-86a16c2d74d8'
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
@@ -710,6 +710,7 @@ check-tree:
- date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc
- date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n
- date '+%Y%m%d-%H%M%S'; ci-fairy generate-template && git diff --exit-code
+ - date '+%Y%m%d-%H%M%S'; ./autogen.sh && [ "$(LANG=C make -C po update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ]
pages:
stage: deploy
diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template
index 437133f34f..75606ec24d 100644
--- a/.gitlab-ci/ci.template
+++ b/.gitlab-ci/ci.template
@@ -209,6 +209,7 @@ check-tree:
- date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc
- date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n
- date '+%Y%m%d-%H%M%S'; ci-fairy generate-template && git diff --exit-code
+ - date '+%Y%m%d-%H%M%S'; ./autogen.sh && [ "$(LANG=C make -C po update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ]
pages:
stage: deploy