[gimp-help/gimp-help-2-10] ci: add a po validation stage



commit f80b2c947f29949f1be4dec61b0b7b766ecb2300
Author: Jacob Boerema <jgboerema gmail com>
Date:   Sat Jul 23 12:45:18 2022 -0400

    ci: add a po validation stage

 .gitlab-ci.yml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 90f42a0d3..6cb0217be 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ image: debian:testing
 
 stages:
   - prepare
+  - validatepo
   - build
   - www
   - distribution
@@ -24,10 +25,18 @@ build-image:
     - echo "FROM debian:testing" > Dockerfile
     - echo "RUN apt-get update" >> Dockerfile
     - echo "RUN apt-get install -y --no-install-recommends \\" >> Dockerfile
-    - echo "automake build-essential docbook-website docbook-xml docbook-xsl fonts-noto-cjk gettext intltool 
librsvg2-2 librsvg2-bin pkg-config pngcrush python3 python3-libxml2 xsltproc" >> Dockerfile
+    - echo "automake build-essential docbook-website docbook-xml docbook-xsl fonts-noto-cjk gettext intltool 
librsvg2-2 librsvg2-bin pkg-config pngcrush python3 python3-libxml2 python3-polib xsltproc" >> Dockerfile
 
     - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination 
$CI_REGISTRY_IMAGE:build-debian-latest --cache=true --cache-ttl=120h
 
+po-validate:
+  stage: validatepo
+  image: $CI_REGISTRY_IMAGE:build-debian-latest
+  script:
+    - cd po
+    - find . -type f -print0 | xargs -0 ../tools/validate_po.py $1 $2
+  needs: ["build-image"]
+
 .build-debian-base:
   stage: build
   image: $CI_REGISTRY_IMAGE:build-debian-latest


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]