1
0
Fork 0

Check syntax of PHP files in src

pull/8773/head
Fabien Villepinte 2020-04-21 14:56:51 +02:00
parent 94c7afb69b
commit da24d0a7d9
1 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ matrix:
include: include:
- php: 5.3 - php: 5.3
dist: precise dist: precise
env:
- PHP_LINT=1
- php: 5.4 - php: 5.4
dist: trusty dist: trusty
- php: 5.5 - php: 5.5
@ -71,7 +73,7 @@ before_script:
- git config --global user.email travis@example.com - git config --global user.email travis@example.com
script: script:
- ( set -e; for f in $(find src/ -name *.php); do php -l "$f" || exit 1; done ) - if [[ "$PHP_LINT" == "1" ]]; then find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f; fi
- if [[ $PHPSTAN == "1" ]]; then - if [[ $PHPSTAN == "1" ]]; then
bin/composer require --dev phpstan/phpstan:^0.12 phpunit/phpunit:^7.5 --no-update && bin/composer require --dev phpstan/phpstan:^0.12 phpunit/phpunit:^7.5 --no-update &&
bin/composer update phpstan/* phpunit/* sebastian/* --with-all-dependencies && bin/composer update phpstan/* phpunit/* sebastian/* --with-all-dependencies &&