add php 7.1 to .travis.xml
[GitHub/Stricted/speedport-hybrid-php-api.git] / .travis.yml
index bcef3722a6f2099802f6de03006b1a5c65596b2a..cd0304a8f4aaa5834f94643e473019c108c28257 100644 (file)
@@ -1,17 +1,16 @@
 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
+  - 7.1
+  - hhvm
 before_script:
+  - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi
+  - 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="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="CryptLib/" --ignore="WCF/" --ignore="vendor/" .
\ No newline at end of file