From 9da69358e24496705abec68efd6078301d339540 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 30 Jan 2015 22:09:47 +0100 Subject: [PATCH] Included code for code climate. --- .travis.yml | 6 ++++++ README.md | 2 ++ build/logs/.gitignore | 1 + composer.json | 5 +++-- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 build/logs/.gitignore diff --git a/.travis.yml b/.travis.yml index 3da09d1ad1..9620d44551 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,10 @@ php: - 5.5 - 5.6 +addons: + code_climate: + repo_token: 26489f9e854fcdf7e7660ba29c1455694685465b1f90329a79f7d2bf448acb61 + install: - rm composer.lock - composer install @@ -14,4 +18,6 @@ script: - php vendor/bin/codecept run --coverage --coverage-xml after_script: + - cp tests/output/coverage.xml build/logs/clover.xml - php vendor/bin/coveralls + - vendor/bin/test-reporter \ No newline at end of file diff --git a/README.md b/README.md index 2a83d210a2..cda3921a13 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Firefly III [![Project Status](http://stillmaintained.com/JC5/firefly-iii.png?a=b)](http://stillmaintained.com/JC5/firefly-iii) [![Coverage Status](https://coveralls.io/repos/JC5/firefly-iii/badge.png?branch=master)](https://coveralls.io/r/JC5/firefly-iii?branch=master) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/d44c7012-5f50-41ad-add8-8445330e4102/mini.png)](https://insight.sensiolabs.com/projects/d44c7012-5f50-41ad-add8-8445330e4102) +[![Code Climate](https://codeclimate.com/github/JC5/firefly-iii/badges/gpa.svg)](https://codeclimate.com/github/JC5/firefly-iii) +[![Test Coverage](https://codeclimate.com/github/JC5/firefly-iii/badges/coverage.svg)](https://codeclimate.com/github/JC5/firefly-iii) [![Latest Stable Version](https://poser.pugx.org/grumpydictator/firefly-iii/v/stable.svg)](https://packagist.org/packages/grumpydictator/firefly-iii) [![Total Downloads](https://poser.pugx.org/grumpydictator/firefly-iii/downloads.svg)](https://packagist.org/packages/grumpydictator/firefly-iii) diff --git a/build/logs/.gitignore b/build/logs/.gitignore new file mode 100644 index 0000000000..b81c7954b7 --- /dev/null +++ b/build/logs/.gitignore @@ -0,0 +1 @@ +*.xml \ No newline at end of file diff --git a/composer.json b/composer.json index cac222a065..f06c862101 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "require-dev": { "barryvdh/laravel-debugbar": "@stable", "barryvdh/laravel-ide-helper": "@stable", - "satooshi/php-coveralls": "dev-master", + "satooshi/php-coveralls": "*", "mockery/mockery": "@stable", "league/factory-muffin": "~2.1", "codeception/codeception": "*", @@ -41,7 +41,8 @@ "codeception/phpbuiltinserver": "*", "codeception/specify": "*", "codeception/verify": "*", - "fzaninotto/faker": "1.*" + "fzaninotto/faker": "1.*", + "codeclimate/php-test-reporter": "dev-master" },