| 1 | language: php |
| 2 | sudo: false |
| 3 | php: |
| 4 | - 5.4 |
| 5 | - 5.5 |
| 6 | - 5.6 |
| 7 | - 7.0 |
| 8 | - 7.1 |
| 9 | - hhvm |
| 10 | before_script: |
| 11 | - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi |
| 12 | - travis_retry composer require "squizlabs/php_codesniffer=*" |
| 13 | - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF |
| 14 | script: |
| 15 | - find . -type f -name '*.php' -not -path "./WCF/*" -not -path "./vendor/*" |xargs -I file php -l file > /dev/null |
| 16 | - vendor/bin/phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="CryptLib/" --ignore="WCF/" --ignore="vendor/" . |