Skip to content

Commit

Permalink
test coverage only once
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Jan 20, 2020
1 parent 1702fd5 commit 36c2168
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;

0 comments on commit 36c2168

Please sign in to comment.