Skip to content

Commit

Permalink
Send Code Coverage reports to Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed Jan 29, 2016
1 parent 4423941 commit 1180bb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .coveralls.yml
@@ -0,0 +1,3 @@
service_name: travis-ci
src_dir: .
coverage_clover: build/logs/clover.xml
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -28,8 +28,12 @@ before_install:
- composer self-update || true
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi;
- if [[ $TRAVIS_PHP_VERSION = '7.0' && $SYMFONY_VERSION = '2.8' ]]; then composer require --no-update "satooshi/php-coveralls:~0.6"; PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else PHPUNIT_FLAGS=""; fi

install:
- composer update $COMPOSER_FLAGS --prefer-source

script: php ./vendor/bin/phpunit
script: php ./vendor/bin/phpunit $PHPUNIT_FLAGS

after_success:
- if [[ $PHPUNIT_FLAGS != "" ]]; then travis_retry php vendor/bin/coveralls -v --config .coveralls.yml; fi

0 comments on commit 1180bb2

Please sign in to comment.