From f1ceadaa46650c21a53634a5cf57f93f8b6c2464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 28 Jan 2016 14:11:40 +0100 Subject: [PATCH] Run php lint on all files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also avoid trying to use composer on PHP 5.2, it simply doesn't work there. Signed-off-by: Michal Čihař --- .travis.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa0b98b3e8..f5041219c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,12 +7,11 @@ sudo: false before_script: - export PATH=~/.composer/vendor/bin/:$PATH - mysql -uroot -e "CREATE DATABASE test;" - - phpenv global 5.4 - - composer install --dev --no-interaction - - phpenv global $TRAVIS_PHP_VERSION + - if [ $TRAVIS_PHP_VERSION != "5.2" ] ; then composer install --dev --no-interaction ; fi - ./scripts/generate-mo --quiet script: - - ./vendor/bin/phpunit --configuration phpunit.xml.nocoverage + - if [ $TRAVIS_PHP_VERSION != "5.2" ] ; then ./vendor/bin/phpunit --configuration phpunit.xml.nocoverage ; fi + - git ls-files | grep '\.php$' | xargs -n1 php -l cache: directories: - $HOME/.composer/cache/