From 4cb3ef5125599c2ffdb3745e973e713cc0d6b5dd Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sun, 20 Mar 2016 21:10:17 +0100 Subject: Put more validations on travis Run php-cs-fixer to avoid CS on commits Add a check on translation message using the built-in yaml validator. It'll avoid typo in translation yaml files. --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 5741b533..e2bf90ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ addons: # cache vendor dirs cache: + apt: true directories: - vendor - $HOME/.composer/cache @@ -28,6 +29,9 @@ env: matrix: fast_finish: true + include: + - php: 7.0 + env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite exclude: - php: hhvm env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency @@ -53,3 +57,5 @@ script: - travis_wait composer install --no-interaction --no-progress --prefer-dist -o - ant prepare-$DB - bin/phpunit -v + - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; + - if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations ; fi; -- cgit v1.2.3