소스 검색

Check syntax of PHP files in src

Fabien Villepinte 5 년 전
부모
커밋
94c7afb69b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      .travis.yml

+ 1 - 0
.travis.yml

@@ -71,6 +71,7 @@ before_script:
   - git config --global user.email travis@example.com
 
 script:
+  - ( set -e; for f in $(find src/ -name *.php); do php -l "$f" || exit 1; done )
   - if [[ $PHPSTAN == "1" ]]; then
       bin/composer require --dev phpstan/phpstan:^0.12 phpunit/phpunit:^7.5 --no-update &&
       bin/composer update phpstan/* phpunit/* sebastian/* --with-all-dependencies &&