Updated CI process to generate a merged coverage file

This commit is contained in:
Alejandro Celaya 2017-10-23 12:51:06 +02:00
parent 9577a4da4b
commit be34600494
2 changed files with 5 additions and 3 deletions

View file

@ -23,7 +23,8 @@ script:
- composer check - composer check
after_script: after_script:
- vendor/bin/phpcov merge build --clover build/clover.xml
- wget https://scrutinizer-ci.com/ocular.phar - wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/unit-clover.xml - php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
sudo: false sudo: false

View file

@ -47,6 +47,7 @@
"require-dev": { "require-dev": {
"filp/whoops": "^2.0", "filp/whoops": "^2.0",
"phpunit/dbunit": "^3.0", "phpunit/dbunit": "^3.0",
"phpunit/phpcov": "^4.0",
"phpunit/phpunit": "^6.0", "phpunit/phpunit": "^6.0",
"slevomat/coding-standard": "^4.0", "slevomat/coding-standard": "^4.0",
"squizlabs/php_codesniffer": "^3.1", "squizlabs/php_codesniffer": "^3.1",
@ -88,9 +89,9 @@
"cs": "phpcs", "cs": "phpcs",
"cs-fix": "phpcbf", "cs-fix": "phpcbf",
"serve": "php -S 0.0.0.0:8000 -t public/", "serve": "php -S 0.0.0.0:8000 -t public/",
"test": "phpunit --coverage-clover build/unit-clover.xml", "test": "phpunit --coverage-php build/coverage-unit.cov",
"pretty-test": "phpunit --coverage-html build/coverage", "pretty-test": "phpunit --coverage-html build/coverage",
"func-test": "phpunit -c phpunit-func.xml --coverage-clover build/func-clover.xml" "func-test": "phpunit -c phpunit-func.xml --coverage-php build/coverage-func.cov"
}, },
"config": { "config": {
"process-timeout": 0, "process-timeout": 0,