Skip to content
This repository was archived by the owner on Mar 9, 2020. It is now read-only.

Commit 1c72800

Browse files
committed
Add CodeClimate test reporter
1 parent 37f418c commit 1c72800

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ rvm:
44
- 2.1.0
55
- 1.9.3
66
# - jruby-19mode # chokes on sqlite
7+
addons:
8+
code_climate:
9+
repo_token: 81415560c1749c5115942949800802e1146a4654402f7a9d739dac8f9d4b0b30
710

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ gem 'spring', group: :development
4040

4141
# required for travis
4242
gem 'rake', group: :test
43+
gem "codeclimate-test-reporter", group: :test, require: nil
4344

4445
# authentication, require rails 4.1 compatible version
4546
gem 'sorcery', '>= 0.8.6'

Gemfile.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ GEM
3030
arel (5.0.1.20140414130214)
3131
bcrypt (3.1.7)
3232
builder (3.2.2)
33+
codeclimate-test-reporter (0.3.0)
34+
simplecov (>= 0.7.1, < 1.0.0)
3335
coffee-rails (4.0.1)
3436
coffee-script (>= 2.2.0)
3537
railties (>= 4.0.0, < 5.0)
3638
coffee-script (2.3.0)
3739
coffee-script-source
3840
execjs
3941
coffee-script-source (1.7.1)
42+
docile (1.1.5)
4043
erubis (2.7.0)
4144
execjs (2.2.1)
4245
faraday (0.9.0)
@@ -97,6 +100,11 @@ GEM
97100
sdoc (0.4.0)
98101
json (~> 1.8)
99102
rdoc (~> 4.0, < 5.0)
103+
simplecov (0.9.0)
104+
docile (~> 1.1.0)
105+
multi_json
106+
simplecov-html (~> 0.8.0)
107+
simplecov-html (0.8.0)
100108
sorcery (0.8.6)
101109
bcrypt (~> 3.1)
102110
oauth (~> 0.4, >= 0.4.4)
@@ -130,6 +138,7 @@ PLATFORMS
130138
ruby
131139

132140
DEPENDENCIES
141+
codeclimate-test-reporter
133142
coffee-rails (~> 4.0.0)
134143
jbuilder (~> 2.0)
135144
jquery-rails

test/test_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
require "codeclimate-test-reporter"
2+
CodeClimate::TestReporter.start
3+
14
ENV['RAILS_ENV'] ||= 'test'
25
require File.expand_path('../../config/environment', __FILE__)
36
require 'rails/test_help'

0 commit comments

Comments
 (0)