Update Scrutinizer dependency and code coverage

This commit is contained in:
Adrien Loison 2016-05-19 10:34:25 -07:00
parent b8fd789ac0
commit 9c7a64b791
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,8 @@ install:
script: script:
- mkdir -p build/logs - mkdir -p build/logs
- php vendor/bin/phpunit --coverage-clover build/logs/clover.xml - php vendor/bin/phpunit --coverage-clover=build/logs/coverage.clover
after_script: after_script:
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/clover.xml; fi - if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/coverage.clover; fi

View File

@ -18,8 +18,7 @@
"ext-simplexml": "*" "ext-simplexml": "*"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": ">=3.7", "phpunit/phpunit": ">=3.7"
"scrutinizer/ocular": "~1.1"
}, },
"suggest": { "suggest": {
"ext-iconv": "To handle non UTF-8 CSV files (if \"php-intl\" is not already installed or is too limited)", "ext-iconv": "To handle non UTF-8 CSV files (if \"php-intl\" is not already installed or is too limited)",