Skip to content

Commit a8b2370

Browse files
authored
Add code coverage
1 parent ae804c0 commit a8b2370

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ php:
66
- '7.2'
77
- nightly
88
before_script:
9-
- composer -n install
9+
- travis_retry composer self-update
10+
- travis_retry composer install --no-interaction --prefer-source --dev
1011
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then pecl install runkit; else pecl install uopz; fi
1112
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then echo "runkit.internal_override=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
1213
- export PATH=$PATH:$PWD
13-
script: vendor/bin/phpunit --configuration tests/phpunit.xml
14+
script: vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml
15+
16+
after_success:
17+
- bash <(curl -s https://codecov.io/bash)
18+
1419
before_deploy:
1520
- ant phar
1621
deploy:
@@ -23,4 +28,4 @@ deploy:
2328
on:
2429
tags: true
2530
after_deploy:
26-
- ant clean
31+
- ant clean

0 commit comments

Comments
 (0)