Skip to content

Instantly share code, notes, and snippets.

@kittinan
Created March 7, 2015 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kittinan/124d539cd6fbf7c5e8d5 to your computer and use it in GitHub Desktop.
Save kittinan/124d539cd6fbf7c5e8d5 to your computer and use it in GitHub Desktop.
travis upload code coverage to scrutinizer
language: php
php:
- 5.5
- 5.4
- 5.3
- hhvm
before_script:
- wget http://getcomposer.org/composer.phar
- php composer.phar install --dev --no-interaction
script:
- phpunit ./tests
- mkdir -p build/logs
- phpunit --coverage-clover build/logs/clover.xml ./tests
after_script:
- php vendor/bin/coveralls -v
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment