load phpcs with composer
authorStricted <info@stricted.de>
Wed, 23 Dec 2015 20:22:53 +0000 (21:22 +0100)
committerStricted <info@stricted.de>
Wed, 23 Dec 2015 20:22:53 +0000 (21:22 +0100)
.travis.yml

index ef0778ce66d44295160c420ff19a5788e7244aea..5e542233b04076022a4328fb79f5b130b0d527d9 100644 (file)
@@ -14,7 +14,10 @@ before_install:
   - pear install pear/PHP_CodeSniffer
   - phpenv rehash
 before_script:
   - 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
   - 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