2017-09-23 19:55:47 +03:00
|
|
|
dist: trusty
|
2017-09-24 19:43:11 +03:00
|
|
|
sudo: false
|
2016-08-26 18:21:39 +03:00
|
|
|
language: php
|
|
|
|
|
|
|
|
install:
|
2018-08-01 19:48:19 +03:00
|
|
|
- if [[ $TRAVIS_PHP_VERSION == "hhvm" ]]; then
|
|
|
|
composer global require squizlabs/PHP_CodeSniffer;
|
|
|
|
else
|
|
|
|
pear channel-update pear.php.net;
|
|
|
|
pear install PHP_CodeSniffer;
|
|
|
|
fi
|
2016-08-26 18:21:39 +03:00
|
|
|
|
|
|
|
script:
|
|
|
|
- phpenv rehash
|
2018-08-01 19:48:19 +03:00
|
|
|
- if [[ $TRAVIS_PHP_VERSION == "hhvm" ]]; then
|
|
|
|
/home/travis/.composer/vendor/bin/phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p;
|
|
|
|
else
|
|
|
|
phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p;
|
|
|
|
fi
|
2016-09-10 20:10:42 +03:00
|
|
|
|
|
|
|
matrix:
|
2016-09-10 20:12:55 +03:00
|
|
|
fast_finish: true
|
2017-09-24 19:43:11 +03:00
|
|
|
|
|
|
|
include:
|
|
|
|
- php: 5.6
|
|
|
|
- php: 7.0
|
|
|
|
- php: hhvm
|
|
|
|
- php: nightly
|
|
|
|
|
2016-09-10 20:10:42 +03:00
|
|
|
allow_failures:
|
|
|
|
- php: hhvm
|
2018-01-11 14:41:25 +03:00
|
|
|
- php: nightly
|