Skip to content

Commit 5cbb048

Browse files
author
Sunny Raj Rathod
authored
Update .travis.yml
1 parent 00bd8df commit 5cbb048

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@ sudo: false
1010
before_script:
1111
- pecl install xmldiff
1212
- composer install --prefer-dist --ignore-platform-reqs
13+
- composer require satooshi/php-coveralls:~0.6@stable
14+
- mkdir -p build/logs
1315
- git submodule update --remote --recursive
1416

1517
script:
16-
- vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover
18+
- vendor/phpunit/phpunit/phpunit --coverage-clover build/logs/clover.xml
1719
- cd sample-code-php
1820
- composer install --prefer-dist --ignore-platform-reqs
1921
- vendor/phpunit/phpunit/phpunit test-runner.php .
2022

2123
after_script:
2224
- wget https://scrutinizer-ci.com/ocular.phar
2325
# - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
26+
27+
after_success:
28+
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'

0 commit comments

Comments
 (0)