Skip to content

Commit e3dd5a4

Browse files
committed
minor #2113 send code coverage report for Scrutinizer (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- send code coverage report for Scrutinizer Commits ------- aaa7cb8 send code coverage report for Scrutinizer
2 parents 22fbbc3 + aaa7cb8 commit e3dd5a4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

3535
before_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

0 commit comments

Comments
 (0)