Skip to content

Commit 56c4c8b

Browse files
authored
Merge pull request qltysh#490 from codeclimate/update_test_reporter
Update to use new style ruby test reporter
2 parents dd86802 + ecd829d commit 56c4c8b

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

Gemfile

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

55
group :test do
6+
gem "simplecov"
67
gem "rake"
78
gem "rspec"
89
gem "rspec_junit_formatter"
9-
gem "codeclimate-test-reporter", require: nil
10+
gem "codeclimate-test-reporter", "1.0.0.pre.rc1"
1011
end

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ GEM
2020
minitest (~> 5.1)
2121
tzinfo (~> 1.1)
2222
builder (3.2.2)
23-
codeclimate-test-reporter (0.4.8)
24-
simplecov (>= 0.7.1, < 1.0.0)
23+
codeclimate-test-reporter (1.0.0.pre.rc1)
2524
codeclimate-yaml (0.9.0)
2625
activesupport
2726
secure_string
@@ -59,7 +58,7 @@ GEM
5958
builder (< 4)
6059
rspec-core (>= 2, < 4, != 2.12.0)
6160
secure_string (1.3.3)
62-
simplecov (0.10.0)
61+
simplecov (0.11.2)
6362
docile (~> 1.1.0)
6463
json (~> 1.8)
6564
simplecov-html (~> 0.10.0)
@@ -75,10 +74,11 @@ PLATFORMS
7574

7675
DEPENDENCIES
7776
codeclimate!
78-
codeclimate-test-reporter
77+
codeclimate-test-reporter (= 1.0.0.pre.rc1)
7978
rake
8079
rspec
8180
rspec_junit_formatter
81+
simplecov
8282

8383
BUNDLED WITH
8484
1.12.5

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ test: image
1414

1515
citest:
1616
docker run \
17+
--entrypoint sh \
1718
--env CIRCLECI=$(CIRCLECI) \
1819
--env CIRCLE_BUILD_NUM=$(CIRCLE_BUILD_NUM) \
1920
--env CIRCLE_BRANCH=$(CIRCLE_BRANCH) \
2021
--env CIRCLE_SHA1=$(CIRCLE_SHA1) \
2122
--env CODECLIMATE_REPO_TOKEN=$(CODECLIMATE_REPO_TOKEN) \
22-
--entrypoint bundle \
2323
--volume $(PWD)/.git:/usr/src/app/.git:ro \
2424
--volume /var/run/docker.sock:/var/run/docker.sock \
2525
--volume $(CIRCLE_TEST_REPORTS):/usr/src/app/spec/reports \
26-
codeclimate/codeclimate exec rake spec:all spec:benchmark
26+
codeclimate/codeclimate -c "bundle exec rake spec:all && bundle exec codeclimate-test-reporter && bundle exec rake spec:benchmark"
2727

2828
install:
2929
bin/check

spec/spec_helper.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
require "codeclimate-test-reporter"
2-
CodeClimate::TestReporter.start
1+
require "simplecov"
2+
SimpleCov.start do
3+
add_filter "/spec/"
4+
end
35

46
require "cc/cli"
57
require "cc/yaml"

0 commit comments

Comments
 (0)