File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ matrix:
2424 env : SYMFONY_REQUIRE="4.3.*"
2525 # Symfony 4.4
2626 - php : 7.4
27- env : SYMFONY_REQUIRE="4.4.*"
27+ env : SYMFONY_REQUIRE="4.4.*" COVERAGE=yes
2828 # development dependencies
2929 - php : 7.4
3030 env : DEPENDENCIES='dev'
@@ -34,7 +34,7 @@ matrix:
3434
3535before_install :
3636 - echo "memory_limit=4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
37- - phpenv config-rm xdebug.ini || true
37+ - if [ "$COVERAGE" != "yes" ]; then phpenv config-rm xdebug.ini || true; fi
3838 - composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
3939 - if [ "$DEPENDENCIES" != "" ]; then composer config minimum-stability $DEPENDENCIES; fi
4040 - if [ "$SYMFONY_LTS" != "" ]; then composer require --dev --no-update symfony/lts=$SYMFONY_LTS; fi
@@ -43,4 +43,7 @@ install:
4343 - composer update $COMPOSER_FLAGS --prefer-dist
4444 - ./phpunit install
4545
46- script : ./phpunit
46+ script :
47+ - if [ "$COVERAGE" = "yes" ]; then ./phpunit --coverage-clover=coverage.clover; else ./phpunit; fi
48+ - if [ "$COVERAGE" = "yes" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
49+ - if [ "$COVERAGE" = "yes" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
You can’t perform that action at this time.
0 commit comments