2012-11-23 10:51:34 +00:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
2013-09-06 08:53:46 +00:00
|
|
|
- 5.5
|
2014-07-09 10:18:09 +00:00
|
|
|
- 5.6
|
2015-05-24 13:58:16 +00:00
|
|
|
- 7.0
|
2016-08-13 14:45:37 +00:00
|
|
|
- 7.1
|
2014-07-09 10:18:09 +00:00
|
|
|
- hhvm
|
2016-08-13 14:40:31 +00:00
|
|
|
|
2014-07-09 10:18:09 +00:00
|
|
|
matrix:
|
2015-05-11 10:30:15 +00:00
|
|
|
allow_failures:
|
2016-08-13 14:45:37 +00:00
|
|
|
- php: 7.1
|
2015-05-11 10:30:15 +00:00
|
|
|
- php: hhvm
|
|
|
|
|
2016-08-13 14:40:31 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2015-05-11 10:30:15 +00:00
|
|
|
before_script:
|
|
|
|
## Packages
|
|
|
|
- sudo apt-get -qq update > /dev/null
|
|
|
|
## Composer
|
|
|
|
- composer self-update
|
2016-08-13 14:40:31 +00:00
|
|
|
- composer install
|
2012-11-23 10:51:34 +00:00
|
|
|
|
|
|
|
script:
|
2015-05-11 10:30:15 +00:00
|
|
|
## PHP_CodeSniffer
|
2016-08-31 16:15:54 +00:00
|
|
|
- ./vendor/bin/phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --standard=PSR2 -n
|
2016-08-16 15:33:57 +00:00
|
|
|
## PHP-CS-Fixer
|
2016-08-16 16:00:21 +00:00
|
|
|
- ./vendor/bin/php-cs-fixer fix --diff --verbose
|
2015-05-11 10:30:15 +00:00
|
|
|
## PHPUnit
|
2016-09-08 17:19:28 +00:00
|
|
|
- ./vendor/bin/phpunit --debug --coverage-clover coverage-clover.xml
|
2016-08-16 14:38:24 +00:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover tests/coverage-clover.xml ; fi
|