Skip to content

Commit ca48bd2

Browse files
committed
Merge pull request #1165 from xabbuh/one-scrutinizer-build
send coverage report to Scrutinizer CI only once
2 parents 859b799 + f1c6b13 commit ca48bd2

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)