Skip to content

Commit f1c6b13

Browse files
committed
send coverage report to Scrutinizer CI only once
With this change, the code coverage report should only be sent once to the Scrutinizer CI service (after the build with PHP 5.6 has finished).
1 parent 859b799 commit f1c6b13

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ before_install:
4545

4646
install: composer update $COMPOSER_FLAGS --prefer-dist
4747

48-
script: phpunit --coverage-clover=coverage.clover
48+
script: if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then phpunit --coverage-clover=coverage.clover; else phpunit; fi
4949

5050
after_script:
51-
- if [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
52-
- if [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
51+
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

0 commit comments

Comments
 (0)