1language: php 2sudo: false 3cache: 4 directories: 5 - vendor 6 - $HOME/.composer/cache 7php: 8 - 5.5 9 - 5.6 10 - 7.0 11 - 7.2 12 13matrix: 14 include: 15 - php: 5.5 16 env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' 17 18before_script: 19 - echo "xdebug.max_nesting_level=1000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 20 - if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi 21 - if [[ $TRAVIS_PHP_VERSION != '5.6' ]]; then phpenv config-rm xdebug.ini; fi 22 - composer self-update 23 - composer update $COMPOSER_FLAGS 24 25script: vendor/phpunit/phpunit/phpunit $PHPUNIT_FLAGS 26 27after_script: 28 - wget https://scrutinizer-ci.com/ocular.phar 29 - if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi 30 31