diff --git a/.travis.yml b/.travis.yml index ee18e3e..877af4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,11 @@ php: - 5.3 - 5.4 +env: + global: + # travis encrypt CODECLIMATE_REPO_TOKEN= + - secure: "edf80QwiEfarXXZHsvupedtjgUYYSwB56su8P4AGAFk060tcPdjlu29rPUAux09UCO6/D7FynBjuaWZj1TYvIuYJm3ih5GUmDvG5iViXvq8VUcI0LbNeth0Jg49xRH+Db21Sx1M+nvWIkQHVOqzDFuFRmVR97mzWLFLF8+BIZU4=" + cache: directories: - vendor @@ -36,3 +41,5 @@ script: after_script: - php vendor/bin/coveralls -v + - ./vendor/bin/test-reporter --stdout > codeclimate.json + - "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v1.0.1-dev)' https://codeclimate.com/test_reports" diff --git a/composer.json b/composer.json index e0afb53..f1a0a7a 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "pdepend/pdepend": "~1.1", "phpmd/phpmd": "~1.4", "squizlabs/php_codesniffer": "~1.4, <1.5", + "codeclimate/php-test-reporter": "dev-master", "satooshi/php-coveralls": "~0.6" }, "minimum-stability": "stable" diff --git a/composer.lock b/composer.lock index fb802cd..d50475a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "f5acd3f787df3b20ca04701068b4fa4c", + "hash": "d4ab10c680c3f8dd70fc4ad3c2ac360a", "packages": [ { "name": "aptoma/silex-extras", @@ -1110,6 +1110,63 @@ } ], "packages-dev": [ + { + "name": "codeclimate/php-test-reporter", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/codeclimate/php-test-reporter.git", + "reference": "8ed24ff30f3663ecf40f1c12d6c97eb56c69e646" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/codeclimate/php-test-reporter/zipball/8ed24ff30f3663ecf40f1c12d6c97eb56c69e646", + "reference": "8ed24ff30f3663ecf40f1c12d6c97eb56c69e646", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "php": ">=5.3", + "satooshi/php-coveralls": "0.6.*", + "symfony/console": ">=2.0" + }, + "require-dev": { + "phpunit/phpunit": "3.7.*@stable" + }, + "bin": [ + "composer/bin/test-reporter" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.1.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": "2014-07-23 13:42:41" + }, { "name": "guzzle/guzzle", "version": "v3.9.1", @@ -1979,9 +2036,9 @@ ], "minimum-stability": "stable", - "stability-flags": [ - - ], + "stability-flags": { + "codeclimate/php-test-reporter": 20 + }, "platform": [ ],