From 51e69e95350b1e20e99fe89ffe0ffc3c737d1077 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sun, 1 Oct 2017 20:54:06 +0200 Subject: [CI] Add a translation validation tool. (#1653) It's triggered by Travis to check what is missing. --- .travis.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 5c43e5666..945e77a74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,16 +14,27 @@ install: script: - phpenv rehash - - phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p + - | + if [[ $VALIDATE_STANDARD == yes ]]; then + phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p + fi + - | + if [[ $CHECK_TRANSLATION == yes ]]; then + php tools/check.translation.php -r + fi + +env: + - CHECK_TRANSLATION=no VALIDATE_STANDARD=yes -env: # important! otherwise no job will be allowed to fail matrix: - # PHP 5.3 only runs on Ubuntu 12.04 (precise), not 14.04 (trusty) + fast_finish: true include: - php: "5.3" dist: precise - fast_finish: true + - php: "7.1" + env: CHECK_TRANSLATION=yes VALIDATE_STANDARD=no allow_failures: + # PHP 5.3 only runs on Ubuntu 12.04 (precise), not 14.04 (trusty) - php: "5.3" dist: precise - php: "5.4" @@ -32,3 +43,4 @@ matrix: - php: "7.0" - php: hhvm - php: nightly + - env: CHECK_TRANSLATION=yes VALIDATE_STANDARD=no -- cgit v1.2.3