try to switch to DI
[GitHub/Stricted/Domain-Control-Panel.git] / .travis.yml
CommitLineData
a25bbdea
S
1language: php
2sudo: false
3php:
a25bbdea
S
4 - 5.6
5 - 7.0
e0267f73 6 - hhvm
a25bbdea 7before_script:
2e3b8a3c 8 - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi
cc2d663a 9 - travis_retry composer self-update
cc2d663a 10 - travis_retry composer require "squizlabs/php_codesniffer=*"
532b3d5e 11 - travis_retry composer install --no-interaction --prefer-source
a25bbdea
S
12 - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
13script:
ec23239f
S
14 - find . -type f -name '*.php' -not -path "./WCF/*" -not -path "./vendor/*" |xargs -I file php -l file > /dev/null
15 - vendor/bin/phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="lib/system/api/" --ignore="WCF/" --ignore="vendor/" .