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!
This commit is contained in:
Hans-Christoph Steiner 2017-05-10 11:51:26 +02:00
parent 2ef9b279a8
commit eff483d73e

View File

@ -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