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