gnome-shell/.gitlab-ci.yml
Florian Müllner a5c9b55a54 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
2019-02-09 04:51:00 +01:00

38 lines
982 B
YAML

stages:
- source_check
variables:
JS_LOG: "js-report.txt"
POT_LOG: "pot-update.txt"
js_check:
image: registry.fedoraproject.org/fedora:latest
stage: source_check
before_script:
- dnf install -y findutils mozjs60-devel
script:
- find js -name '*.js' -exec js60 -c -s '{}' ';' 2>&1 | tee $JS_LOG
- (! grep -q . $JS_LOG)
artifacts:
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