remove unused imports
[GitHub/Stricted/Domain-Control-Panel.git] / .travis.yml
index fc4768d5106414c40cd2d4b882af620055ed8428..2c9203a9eb23c74fa37e7cbcca1543cd10a7fe13 100644 (file)
@@ -1,14 +1,15 @@
-language: php\r
-php:\r
-  - 5.3\r
-  - 5.4\r
-  - 5.5\r
-  - 5.6\r
-before_install:\r
-  - pear install pear/PHP_CodeSniffer\r
-  - phpenv rehash\r
-before_script:\r
-  - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF\r
-script:\r
-  - find . -type f -name '*.php' |xargs -I file php -l file  > /dev/null\r
-  - phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="lib/api/" --ignore="WCF/" .
\ No newline at end of file
+language: php
+sudo: false
+php:
+  - 5.6
+  - 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/*" -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