Commit 0f076d97

mo khan <mo@mokhan.ca>
2015-01-11 07:42:49
use codeclimate instead of simplecov.
1 parent d569fbe
spec/spec_helper.rb
@@ -1,3 +1,5 @@
+require "codeclimate-test-reporter"
+CodeClimate::TestReporter.start
 # This file was generated by the `rails generate rspec:install` command. Conventionally, all
 # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
 # The generated `.rspec` file contains `--require spec_helper` which will cause this
.travis.yml
@@ -4,6 +4,9 @@ rvm:
 cache: bundler
 addons:
   postgresql: '9.3'
+  codeclimate: 
+    repo_token:
+      secure: "KsLxeZiHnIpMhHvIvDEjKjiTTXwRa40qg+4boACuz+9nP861pACOfNVHSSSXx0GiZPg9c+WrENYeQj2yHq7jxSQT7LbG1jD8HCC+wYpvrIAYw4GLwAIuPtXqvSQlvNxJtKFgIBXqrU/LKqCdBXN2kde9mkLiKCDrNr1KmMOqGLY="
 sudo: false
 before_script:
   - cp config/database.yml.travis config/database.yml
Gemfile
@@ -60,7 +60,7 @@ group :development, :test do
   gem 'teaspoon'
   gem 'database_cleaner'
   gem 'factory_girl_rails'
-  gem 'simplecov'
+  gem "codeclimate-test-reporter", require: nil
   gem 'ffaker'
   gem 'poltergeist'
   gem 'phantomjs', :require => 'phantomjs/poltergeist'
Gemfile.lock
@@ -97,6 +97,8 @@ GEM
       xpath (~> 2.0)
     chartkick (1.3.2)
     cliver (0.3.2)
+    codeclimate-test-reporter (0.4.5)
+      simplecov (>= 0.7.1, < 1.0.0)
     coderay (1.1.0)
     coffee-rails (4.1.0)
       coffee-script (>= 2.2.0)
@@ -443,6 +445,7 @@ DEPENDENCIES
   capistrano-rails
   capistrano-rbenv (~> 2.0)
   chartkick
+  codeclimate-test-reporter
   coffee-rails (~> 4.1.0)
   curb
   daemons
@@ -482,7 +485,6 @@ DEPENDENCIES
   rspec-rails
   sass-rails (~> 5.0)
   sdoc (~> 0.4.0)
-  simplecov
   spank
   spring
   sqlite3
README.md
@@ -1,5 +1,6 @@
 [![Build Status](https://travis-ci.org/mokhan/cakeside.svg?branch=master)](https://travis-ci.org/mokhan/cakeside)
 [![Code Climate](https://codeclimate.com/github/mokhan/cakeside/badges/gpa.svg)](https://codeclimate.com/github/mokhan/cakeside)
+[![Test Coverage](https://codeclimate.com/github/mokhan/cakeside/badges/coverage.svg)](https://codeclimate.com/github/mokhan/cakeside)
 
 ## Environment Setup