From eff483d73e877c552a60b395846fc7769eecc1b8 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 10 May 2017 11:51:26 +0200 Subject: [PATCH] gitlab-ci: fail if translation strings need corrections Since we have all these lovely scripts for cleaning up the translations, gitlab-ci is a handy way to enforce that they get used. Since weblate merges happen via merge requests, this will work nicely now. I can't think of any false positives that will arise, but we shall find out! --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a6ff1d88..afb30fd94 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,8 @@ before_script: test: script: - ./tools/check-format-strings.py + - ./tools/remove-unused-and-blank-translations.py + - git diff | grep diff && false # there should be no changes - ./gradlew assemble -PdisablePreDex # always report on lint errors to the build log - sed -i -e 's,textReport .*,textReport true,' app/build.gradle