Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Configure Code Climate test coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
laserlemon committed Jun 24, 2014
1 parent a9e2cd3 commit 646ba14
Show file tree
Hide file tree
Showing 28 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ gemfile:
- gemfiles/mongoid/3-0.gemfile
- gemfiles/mongoid/3-1.gemfile
- gemfiles/mongoid/4-0.gemfile
env:
global:
secure: | # CODECLIMATE_REPO_TOKEN
c1IvkNUiB8/23zmAof8gkthrz79Iou+e/rKddC6w11CNwv0s5nusWgjtwuMg
fEEfEFU+Q3TPDtZ+YUjXbzRST6w734OqEltU0QNoFd+j1PL94c6o8iEniJT+
JAhKTfB5G7X8ZApxCSwBg3ADhM5VdNbF1itYQkg4OJac2mQfx38=
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ gemspec name: "periscope-mongo_mapper"
gemspec name: "periscope-mongoid"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.2.0"
gem "dm-migrations", "~> 1.2"
gem "dm-sqlite-adapter", "~> 1.2"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/active_record/3-0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "activerecord", "~> 3.0.0"
gemspec name: "periscope-activerecord", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/active_record/3-1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "activerecord", "~> 3.1.0"
gemspec name: "periscope-activerecord", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/active_record/3-2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "activerecord", "~> 3.2.0"
gemspec name: "periscope-activerecord", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/active_record/4-0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "activerecord", "~> 4.0.0"
gemspec name: "periscope-activerecord", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/active_record/4-1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "activerecord", "~> 4.1.0"
gemspec name: "periscope-activerecord", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/data_mapper/1-0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "dm-core", "~> 1.0.0"
gemspec name: "periscope-data_mapper", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.2.0"
gem "dm-migrations", "~> 1.0.0"
gem "dm-sqlite-adapter", "~> 1.0.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/data_mapper/1-1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "dm-core", "~> 1.1.0"
gemspec name: "periscope-data_mapper", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.2.0"
gem "dm-migrations", "~> 1.1.0"
gem "dm-sqlite-adapter", "~> 1.1.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/data_mapper/1-2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "dm-core", "~> 1.2.0"
gemspec name: "periscope-data_mapper", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.2.0"
gem "dm-migrations", "~> 1.2.0"
gem "dm-sqlite-adapter", "~> 1.2.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongo_mapper/0-10.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongo_mapper", "~> 0.10.0"
gemspec name: "periscope-mongo_mapper", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongo_mapper/0-11.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongo_mapper", "~> 0.11.0"
gemspec name: "periscope-mongo_mapper", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongo_mapper/0-12.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongo_mapper", "~> 0.12.0"
gemspec name: "periscope-mongo_mapper", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongo_mapper/0-13.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongo_mapper", "~> 0.13.0"
gemspec name: "periscope-mongo_mapper", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongo_mapper/0-9.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongo_mapper", "~> 0.9.0"
gemspec name: "periscope-mongo_mapper", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/2-0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 2.0.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/2-1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 2.1.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/2-2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 2.2.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/2-3.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 2.3.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/2-4.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 2.4.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/2-5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 2.5.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/2-6.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 2.6.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/2-7.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 2.7.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/2-8.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 2.8.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/3-0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 3.0.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/3-1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 3.1.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/mongoid/4-0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem "mongoid", "~> 4.0.0"
gemspec name: "periscope-mongoid", path: "../../"

group :test do
gem "codeclimate-test-reporter", require: false
gem "database_cleaner", "~> 1.3"
gem "factory_girl", "~> 4.4"
gem "rspec", "~> 3.0"
Expand Down
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
if ENV["CODECLIMATE_REPO_TOKEN"]
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
end

adapter, gemfile = ENV["ADAPTER"], ENV["BUNDLE_GEMFILE"]
adapter ||= gemfile && gemfile[%r(gemfiles/(.*?)/)] && $1

Expand Down

0 comments on commit 646ba14

Please sign in to comment.