Commit | Line | Data |
---|---|---|
a25bbdea S |
1 | language: php |
2 | sudo: false | |
3 | php: | |
a25bbdea S |
4 | - 5.6 |
5 | - 7.0 | |
e0267f73 | 6 | - hhvm |
a25bbdea | 7 | before_script: |
2e3b8a3c | 8 | - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi |
cc2d663a | 9 | - travis_retry composer self-update |
cc2d663a | 10 | - travis_retry composer require "squizlabs/php_codesniffer=*" |
532b3d5e | 11 | - travis_retry composer install --no-interaction --prefer-source |
a25bbdea S |
12 | - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF |
13 | script: | |
ec23239f S |
14 | - find . -type f -name '*.php' -not -path "./WCF/*" -not -path "./vendor/*" |xargs -I file php -l file > /dev/null |
15 | - vendor/bin/phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="lib/system/api/" --ignore="WCF/" --ignore="vendor/" . |