add php 7.1 to .travis.xml
[GitHub/Stricted/speedport-hybrid-php-api.git] / .travis.yml
CommitLineData
7f4a51d2 1language: php
3ab2dcb4 2sudo: false
7f4a51d2 3php:
7f4a51d2
S
4 - 5.4
5 - 5.5
6 - 5.6
3ab2dcb4 7 - 7.0
d5fcf33d 8 - 7.1
3ab2dcb4 9 - hhvm
7f4a51d2 10before_script:
3ab2dcb4 11 - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi
3ab2dcb4 12 - travis_retry composer require "squizlabs/php_codesniffer=*"
7f4a51d2
S
13 - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
14script:
3ab2dcb4 15 - find . -type f -name '*.php' -not -path "./WCF/*" -not -path "./vendor/*" |xargs -I file php -l file > /dev/null
5def0f10 16 - vendor/bin/phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="CryptLib/" --ignore="WCF/" --ignore="vendor/" .