2017-09-23 18:55:47 +02:00
|
|
|
dist: trusty
|
2017-09-24 18:43:11 +02:00
|
|
|
sudo: false
|
2016-08-26 17:21:39 +02:00
|
|
|
language: php
|
|
|
|
|
|
|
|
install:
|
2018-08-01 18:48:19 +02: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
|
2018-08-05 00:39:53 +02:00
|
|
|
- if [[ $TRAVIS_PHP_VERSION == "7.0" ]]; then
|
|
|
|
composer global require phpunit/phpunit ^6;
|
|
|
|
fi
|
2016-08-26 17:21:39 +02:00
|
|
|
|
|
|
|
script:
|
|
|
|
- phpenv rehash
|
2018-08-01 18:48:19 +02: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
|
2018-08-05 00:39:53 +02:00
|
|
|
- if [[ $TRAVIS_PHP_VERSION == "7.0" ]]; then
|
|
|
|
phpunit --configuration=phpunit.xml --include-path=lib/;
|
|
|
|
fi
|
2016-09-10 19:10:42 +02:00
|
|
|
|
|
|
|
matrix:
|
2016-09-10 19:12:55 +02:00
|
|
|
fast_finish: true
|
2017-09-24 18:43:11 +02:00
|
|
|
|
|
|
|
include:
|
|
|
|
- php: 5.6
|
|
|
|
- php: 7.0
|
|
|
|
- php: hhvm
|
|
|
|
- php: nightly
|
|
|
|
|
2016-09-10 19:10:42 +02:00
|
|
|
allow_failures:
|
|
|
|
- php: hhvm
|
2018-01-11 12:41:25 +01:00
|
|
|
- php: nightly
|