1language: php 2 3sudo: false 4 5git: 6 depth: 1 7 8cache: 9 directories: 10 - $HOME/.composer/cache 11 12matrix: 13 include: 14 - php: 7.2 15 - php: 7.2 16 env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' 17 fast_finish: true 18 19before_script: 20 - if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then PHPUNIT_FLAGS="--coverage-clover clover"; else PHPUNIT_FLAGS=""; fi 21 - if [[ $TRAVIS_PHP_VERSION != '7.2' ]]; then phpenv config-rm xdebug.ini; fi 22 - composer self-update 23 - composer update $COMPOSER_FLAGS 24 25script: 26 - vendor/bin/phpunit $PHPUNIT_FLAGS 27 - vendor/bin/phpcs 28 29after_success: 30 - if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi 31 - if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then php ocular.phar code-coverage:upload --format=php-clover clover; fi 32 33 34