Fix syntax error in the command + add colors

This commit is contained in:
Thomas Bétous 2021-04-27 22:43:50 +02:00
parent 2f1389abd6
commit 6addff7251
1 changed files with 3 additions and 1 deletions

View File

@ -61,8 +61,10 @@ translation:
before_script:
- *apt_get_update
- apt-get install --yes gettext > /dev/null
# We cannot use a simple "find ... -exec msgcmp {} strings.po" because it
# would always return 0 as exit code
script:
- files=$(find . -name strings.po -not -path './resources/language/resource.language.en_gb/*') && for file in files; do msgcmp $file ./resources/language/resource.language.en_gb/strings.po; done
- files=$(find . -name strings.po -not -path './resources/language/resource.language.en_gb/*') && for file in $files; do echo -e "\n\033[94mChecking translation file $file\033[0m"; msgcmp $file ./resources/language/resource.language.en_gb/strings.po; done
# Pre-release job: will be available in all the merge requests with release
# branches in order to verify the release can be actually created. The