Commit | Line | Data |
---|---|---|
7f4a51d2 | 1 | language: php |
3ab2dcb4 | 2 | sudo: false |
7f4a51d2 | 3 | php: |
3ab2dcb4 | 4 | - 5.3 |
7f4a51d2 S |
5 | - 5.4 |
6 | - 5.5 | |
7 | - 5.6 | |
3ab2dcb4 S |
8 | - 7.0 |
9 | - hhvm | |
7f4a51d2 | 10 | before_script: |
3ab2dcb4 S |
11 | - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi |
12 | - travis_retry composer self-update | |
13 | - travis_retry composer require "squizlabs/php_codesniffer=*" | |
14 | - travis_retry composer install --no-interaction --prefer-source | |
7f4a51d2 S |
15 | - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF |
16 | script: | |
3ab2dcb4 | 17 | - find . -type f -name '*.php' -not -path "./WCF/*" -not -path "./vendor/*" |xargs -I file php -l file > /dev/null |
5def0f10 | 18 | - vendor/bin/phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" --ignore="CryptLib/" --ignore="WCF/" --ignore="vendor/" . |