From 3ab2dcb4d667ef89d0fe14ae400a25187018e8fc Mon Sep 17 00:00:00 2001 From: Stricted Date: Tue, 12 Jan 2016 12:33:20 +0100 Subject: [PATCH] fix travis build --- .travis.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index fb0410e..c54f643 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,18 @@ language: php +sudo: false php: + - 5.3 - 5.4 - 5.5 - 5.6 - - nightly -allow_failures: - - php: nightly -before_install: - - pear install pear/PHP_CodeSniffer - - phpenv rehash + - 7.0 + - hhvm before_script: + - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi + - travis_retry composer self-update + - travis_retry composer require "squizlabs/php_codesniffer=*" + - travis_retry composer install --no-interaction --prefer-source - 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="CryptLib/" --ignore="WCF/" . \ No newline at end of file + - find . -type f -name '*.php' -not -path "./WCF/*" -not -path "./vendor/*" |xargs -I file php -l file > /dev/null + - vendor/bin/phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="lib/system/api/" --ignore="WCF/" --ignore="vendor/" . \ No newline at end of file -- 2.20.1