Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from bearsunday/travis
update .travis.yml
- Loading branch information
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
sudo: false | ||
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- hhvm | ||
- 7 | ||
|
||
install: travis_retry composer install --no-interaction --prefer-source | ||
|
||
before_script: | ||
- composer self-update | ||
- composer install | ||
script: | ||
- if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then phpunit; fi | ||
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpunit --coverage-text --coverage-clover=coverage.clover; fi | ||
|
||
- phpunit --coverage-clover=coverage.clover | ||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi | ||
|
||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover |