aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2017-10-01 20:54:06 +0200
committerGravatar Frans de Jonge <fransdejonge@gmail.com> 2017-10-01 20:54:06 +0200
commit51e69e95350b1e20e99fe89ffe0ffc3c737d1077 (patch)
tree773b648584528802b26799857dd5a5f45ded85d4 /.travis.yml
parent1cf9816fe5b0c6aa6436c368ab69e43665d67f21 (diff)
[CI] Add a translation validation tool. (#1653)
It's triggered by Travis to check what is missing.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml20
1 files changed, 16 insertions, 4 deletions
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