From cc2d663a27b49993a4d01eb36b7c00d2df855ff7 Mon Sep 17 00:00:00 2001 From: Stricted Date: Wed, 23 Dec 2015 21:22:53 +0100 Subject: [PATCH] load phpcs with composer --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ef0778c..5e54223 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,10 @@ before_install: - 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 -- 2.20.1