Run php lint on all files
Also avoid trying to use composer on PHP 5.2, it simply doesn't work there. Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
10dd46fca4
commit
f1ceadaa46
@ -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/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user