language: php
sudo: false
php:
  - 7.2
  - 7.0
before_install:
  - export PATH="$PATH:$(composer global config bin-dir --absolute)"
  - composer global require "squizlabs/php_codesniffer=3.*"
  - phpenv rehash
script:
  - find . -type f -name '*.php' -not -path './wcfsetup/install/files/lib/system/api/composer/autoload_static.php' -print0 |xargs -0 -I file -P 4 php -l file > /dev/null
  - phpcs -p --extensions=php --standard="`pwd`/CodeSniff/WCF" .

language: php
sudo: false
php:
  - 7.2
  - 7.0
before_install:
  - export PATH="$PATH:$(composer global config bin-dir --absolute)"
  - composer global require "squizlabs/php_codesniffer=3.*"
  - phpenv rehash
script:
  - phpcs -p --extensions=php --standard="`pwd`/CodeSniff/WCF" .

Remove PHP syntax check from Travis CI
Remove PHP syntax check from Travis CI
