- pear install pear/PHP_CodeSniffer
- phpenv rehash
before_script:
+ - travis_retry composer self-update
+ - travis_retry composer install --no-interaction --prefer-source --dev
+ - travis_retry composer require "squizlabs/php_codesniffer=*"
- git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
script:
- find . -type f -name '*.php' -not -path "./WCF/*" |xargs -I file php -l file > /dev/null
- - phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="lib/system/api/" --ignore="WCF/" .
\ No newline at end of file
+ - vendor/bin/phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="lib/system/api/" --ignore="WCF/" .
\ No newline at end of file