From 2bea65b67358d08c6c7a2b3669d09c9609194a0a Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 25 Jun 2018 21:53:22 +0100 Subject: [PATCH] Update .travis.yml --- .travis.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 882915d4..69655247 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: php - +dist: trusty sudo: false branches: @@ -7,13 +7,19 @@ branches: - l10n_2.4 php: - - 7.0 - 7.1 + - 7.2 before_install: - cp .env.example .env - phpenv config-rm xdebug.ini -install: travis_retry composer install --no-interaction --no-suggest +install: travis_retry composer install --no-interaction --no-suggest -o -script: vendor/bin/phpunit +script: + - if [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then vendor/bin/phpunit; fi + - if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi + +after_script: + - if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi + - if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi