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 | |
7ef2c6f2 | 9 | - hhcm |
a25bbdea | 10 | before_script: |
cc2d663a | 11 | - travis_retry composer self-update |
cc2d663a | 12 | - travis_retry composer require "squizlabs/php_codesniffer=*" |
0cf60486 | 13 | - travis_retry composer install --no-interaction --prefer-source --dev |
a25bbdea S |
14 | - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF |
15 | script: | |
ec23239f S |
16 | - find . -type f -name '*.php' -not -path "./WCF/*" -not -path "./vendor/*" |xargs -I file php -l file > /dev/null |
17 | - vendor/bin/phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="lib/system/api/" --ignore="WCF/" --ignore="vendor/" . |