language: php
php:
  - '5.4'
  - '5.5'
  - '5.6'
  - '7.0'

before_script:
  - if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi

script: phpunit test.php

language: php
php:
  - '5.6'
  - '7.0'
  - '7.1'
  - '7.2'

before_script:
  - if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi

script: phpunit test.php

Remove test-failing PHP versions from Travis CI
Remove test-failing PHP versions from Travis CI