mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-06-28 14:49:30 +00:00
gitlab-ci: Fail when C files are missing from POTFILES.in
If there are translation in C files but not in POTFILES.in fail the pipeline.
This commit is contained in:
parent
6921a104c8
commit
d0e3e580c9
|
@ -53,6 +53,25 @@ test:native:
|
||||||
variables:
|
variables:
|
||||||
- $PKG_ONLY == "1"
|
- $PKG_ONLY == "1"
|
||||||
|
|
||||||
|
check-po:
|
||||||
|
<<: *tags
|
||||||
|
image: $IMAGE
|
||||||
|
stage: test
|
||||||
|
dependencies:
|
||||||
|
- build:native
|
||||||
|
before_script:
|
||||||
|
- apt-get -y update
|
||||||
|
- apt-get -y install intltool
|
||||||
|
script:
|
||||||
|
# barf on untranslated C files. Seems intltool
|
||||||
|
# can't be told to exit with non-zero exit status
|
||||||
|
# in this case
|
||||||
|
- cd po/
|
||||||
|
- intltool-update -m 2>&1 | grep -qs '/.*\.c' && { intltool-update -m; exit 1; } || exit 0
|
||||||
|
except:
|
||||||
|
variables:
|
||||||
|
- $PKG_ONLY == "1"
|
||||||
|
|
||||||
package:deb-debian-buster:
|
package:deb-debian-buster:
|
||||||
extends: .l5-build-debian-package
|
extends: .l5-build-debian-package
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue