ci: Check that pot file is generated correctly

This is to guard against the now infamous xgettext bug[0].

[0] https://savannah.gnu.org/bugs/?50920#comment5
This commit is contained in:
Florian Müllner 2019-02-09 04:51:00 +01:00
parent 4d2b2a12ea
commit a5c9b55a54

View File

@ -3,6 +3,7 @@ stages:
variables:
JS_LOG: "js-report.txt"
POT_LOG: "pot-update.txt"
js_check:
image: registry.fedoraproject.org/fedora:latest
@ -16,3 +17,21 @@ js_check:
paths:
- ${JS_LOG}
when: on_failure
pot_check:
# Check that pot files are generated correctly:
# https://savannah.gnu.org/bugs/?50920#comment5
image: registry.gitlab.gnome.org/gnome/mutter/master:v1
stage: source_check
script:
- meson _meson
- ninja -C _meson gnome-shell-pot | awk '
BEGIN { start=0; }
start==1 { print $0; }
/gnome-shell-pot/ { start=1; }
' | tee $POT_LOG
- (! grep -q . $POT_LOG)
artifacts:
paths:
- ${POT_LOG}
when: on_failure