Skip to content

Commit

Permalink
Merge pull request #13 from peter-gribanov/fix_build_coverage
Browse files Browse the repository at this point in the history
Test coverage only once
  • Loading branch information
peter-gribanov authored Jan 20, 2020
2 parents d72b640 + 36c2168 commit 6eb8a8d
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 6eb8a8d

Please sign in to comment.