From 82c3ef5e2f22ee2c767569d3e5cceff2ec52eddd Mon Sep 17 00:00:00 2001 From: Baptiste Gaillard Date: Wed, 17 Aug 2016 14:07:22 +0200 Subject: [PATCH] Try to configure code coverage. --- .gitignore | 1 + Gruntfile.js | 15 -------- composer.json | 1 + composer.lock | 62 +++++++++++++++++++++++++++++++-- phpunit.xml.dist => phpunit.xml | 8 ++--- 5 files changed, 65 insertions(+), 22 deletions(-) rename phpunit.xml.dist => phpunit.xml (88%) diff --git a/.gitignore b/.gitignore index 2c53c8b..8ec1999 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ elasticsearch.log /node_modules/ /target/ /scheduled_task_manager.lock +/build/ diff --git a/Gruntfile.js b/Gruntfile.js index 514dd98..caee809 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -42,21 +42,6 @@ module.exports = function(grunt) { } }, - paratest : { - command : (function() { - - var command = 'vendor\bin\paratest'; - command += ' --processes=4'; - command += ' --functional'; - command += ' --colors'; - command += ' --configuration="phpunit.xml"'; - command += ' --path="src/test/php"'; - - return command; - - })() - }, - pdepend : { command : (function() { diff --git a/composer.json b/composer.json index 032179d..dab066a 100644 --- a/composer.json +++ b/composer.json @@ -33,6 +33,7 @@ }, "require-dev" : { "brianium/paratest" : "^0.14.0", + "codeclimate/php-test-reporter" : "^0.3.2", "pdepend/pdepend" : "^2.2.4", "phpdocumentor/phpdocumentor" : "^2.9.0", "phploc/phploc" : "^3.0.1", diff --git a/composer.lock b/composer.lock index bb57cf8..2e4862a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "ae62beaf3d7c4efb1ca9fe7819954046", - "content-hash": "2036dda2c7a86d7cfc297bc504a07b04", + "hash": "124e3ab31274fab62e6a04305a7ccd61", + "content-hash": "c46767d975ff85ad59f7c7ac50f8f3e1", "packages": [ { "name": "cboden/ratchet", @@ -836,6 +836,64 @@ ], "time": "2012-12-19 10:50:58" }, + { + "name": "codeclimate/php-test-reporter", + "version": "v0.3.2", + "source": { + "type": "git", + "url": "https://github.com/codeclimate/php-test-reporter.git", + "reference": "3a2d3ebdc1df5acf372458c15041af240a6fc016" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/codeclimate/php-test-reporter/zipball/3a2d3ebdc1df5acf372458c15041af240a6fc016", + "reference": "3a2d3ebdc1df5acf372458c15041af240a6fc016", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "php": ">=5.3", + "satooshi/php-coveralls": "1.0.*", + "symfony/console": ">=2.0" + }, + "require-dev": { + "ext-xdebug": "*", + "phpunit/phpunit": "3.7.*@stable" + }, + "bin": [ + "composer/bin/test-reporter" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.3.x-dev" + } + }, + "autoload": { + "psr-0": { + "CodeClimate\\Component": "src/", + "CodeClimate\\Bundle": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Code Climate", + "email": "hello@codeclimate.com", + "homepage": "https://codeclimate.com" + } + ], + "description": "PHP client for reporting test coverage to Code Climate", + "homepage": "https://github.com/codeclimate/php-test-reporter", + "keywords": [ + "codeclimate", + "coverage" + ], + "time": "2016-04-19 16:54:33" + }, { "name": "composer/semver", "version": "1.4.1", diff --git a/phpunit.xml.dist b/phpunit.xml similarity index 88% rename from phpunit.xml.dist rename to phpunit.xml index 442fa4c..f8f0805 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml @@ -1,4 +1,6 @@ + target="build/reports/phpunit/TEST-phpunit.report.xml" />