Skip to content

Commit 9ef7c39

Browse files
committedMay 29, 2014
Add code coverage to code climate
1 parent 62e6eac commit 9ef7c39

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed
 

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ before_script:
99
- cp .env.example .env
1010
- cp config/database.yml.example config/database.yml
1111
- bin/rake db:create db:schema:load RAILS_ENV=test
12-
script: foreman run bin/rake
12+
script: foreman run bin/rake CODECLIMATE_REPO_TOKEN=bc1f2e3577b0e97d31923693254d33208ebeeb970c0b5dd0d8e49023f23196d9
1313
deploy:
1414
provider: heroku
1515
strategy: git

‎Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ end
6969
group :test do
7070
gem 'capybara'
7171
gem 'webmock', '< 1.16'
72+
gem 'codeclimate-test-reporter', require: nil
7273
end
7374

7475
group :development, :production do

‎Gemfile.lock

+9
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ GEM
7272
carrierwave (>= 0.7.0)
7373
celluloid (0.15.2)
7474
timers (~> 1.1.0)
75+
codeclimate-test-reporter (0.3.0)
76+
simplecov (>= 0.7.1, < 1.0.0)
7577
coderay (1.1.0)
7678
coffee-rails (4.0.1)
7779
coffee-script (>= 2.2.0)
@@ -98,6 +100,7 @@ GEM
98100
actionmailer (>= 3.2.6, < 5)
99101
devise (>= 3.2.0)
100102
diff-lcs (1.2.5)
103+
docile (1.1.3)
101104
doorkeeper (1.0.0)
102105
railties (>= 3.1)
103106
dotenv (0.9.0)
@@ -260,6 +263,11 @@ GEM
260263
redis (>= 3.0.6)
261264
redis-namespace (>= 1.3.1)
262265
signature (0.1.7)
266+
simplecov (0.8.2)
267+
docile (~> 1.1.0)
268+
multi_json
269+
simplecov-html (~> 0.8.0)
270+
simplecov-html (0.8.0)
263271
sinatra (1.4.4)
264272
rack (~> 1.4)
265273
rack-protection (~> 1.4)
@@ -323,6 +331,7 @@ DEPENDENCIES
323331
capybara
324332
carrierwave
325333
carrierwave-aws
334+
codeclimate-test-reporter
326335
curb
327336
database_cleaner
328337
devise (~> 3.1)

‎spec/spec_helper.rb

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
require 'codeclimate-test-reporter'
2+
CodeClimate::TestReporter.start
3+
14
# This file is copied to spec/ when you run 'rails generate rspec:install'
25
ENV["RAILS_ENV"] ||= 'test'
36
ENV["INCOMING_EMAIL_DOMAIN"] = 'helpful.io'

0 commit comments

Comments
 (0)
Please sign in to comment.