Skip to content

Commit 294d19d

Browse files
authored
Merge pull request #132 from collectiveidea/fix-code-climate
Reconfigure the CodeClimate test reporter for version 1.0+
2 parents 6de0c22 + 2b387b8 commit 294d19d

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.travis.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
before_install:
2-
- gem update bundler rake
1+
after_success: bundle exec codeclimate-test-reporter
2+
before_install: gem update bundler rake
33
branches:
44
only:
55
- master
66
- v4
77
cache: bundler
8-
env:
9-
global:
10-
- secure: | # CODECLIMATE_REPO_TOKEN
11-
BIemhM273wHZMpuULDMYGPsxYdfw+NMw7IQbOD6gy5r+dha07y9ssTYYE5Gn
12-
t1ptAb09lhQ4gexXTr83i6angMrnHgQ1ZX2wfeoZ0FvWDHQht9YkXyiNH+R6
13-
odHUeDIYAlUiqLX9nAkklL89Rc22BrHMGGNyuA8Uc5sktW5P/FE=
148
language: ruby
159
matrix:
1610
allow_failures:
17-
- rvm: ruby-head
1811
- rvm: "2.0"
12+
- rvm: ruby-head
1913
notifications:
2014
webhooks:
2115
on_start: always

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source "https://rubygems.org"
33
gemspec
44

55
group :test do
6-
gem "codeclimate-test-reporter", require: false
6+
gem "codeclimate-test-reporter", "~> 1.0"
77
gem "rspec", "~> 3.2"
88
gem "rubocop", "~> 0.47.1"
99
end

spec/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if ENV["CODECLIMATE_REPO_TOKEN"]
2-
require "codeclimate-test-reporter"
3-
CodeClimate::TestReporter.start
2+
require "simplecov"
3+
SimpleCov.start
44
end
55

66
require "interactor"

0 commit comments

Comments
 (0)