From 36c216875cea7910a52bd6ea57cab1afa62ff889 Mon Sep 17 00:00:00 2001 From: Peter Gribanov Date: Mon, 20 Jan 2020 19:11:39 +0300 Subject: [PATCH] test coverage only once --- .travis.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f0fe0a5..5af8f16 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ matrix: dist: trusty env: PREDIS_VERSION=1.1.* - php: 5.6 - env: PUBSUB_PREDIS_VERSION=2.0.* + env: PUBSUB_PREDIS_VERSION=2.0.* COVERALLS=1 before_install: - if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then echo 'xdebug.enable = on' >> /etc/hhvm/php.ini; fi @@ -48,8 +48,9 @@ install: - composer install --prefer-dist --no-interaction --no-scripts --no-progress script: - - vendor/bin/phpunit --verbose --coverage-clover build/coverage-clover.xml + - if [ "$COVERALLS" != "1" ]; then vendor/bin/phpunit --verbose; fi; + - if [ "$COVERALLS" = "1" ]; then vendor/bin/phpunit --verbose --coverage-clover build/coverage-clover.xml; fi; after_script: - - vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-clover.xml - - vendor/bin/coveralls -v -c .coveralls.yml + - if [ "$COVERALLS" = "1" ]; then vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-clover.xml; fi; + - if [ "$COVERALLS" = "1" ]; then vendor/bin/coveralls -v -c .coveralls.yml; fi;