Skip to content

Commit e4c4d5f

Browse files
committed
Use Code Climate's new test reporter for test coverage
1 parent fd5a63d commit e4c4d5f

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,23 @@ before_script:
2323
- bundle exec rake db:create
2424
- DB=mysql bundle exec rake parallel:create
2525
- DB=postgres bundle exec rake parallel:create
26+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
27+
- chmod +x ./cc-test-reporter
28+
- ./cc-test-reporter before-build
2629

2730
script:
2831
- bundle exec rake $TASKS
2932

3033
after_script:
31-
- codeclimate-test-reporter
34+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
3235

3336
services:
3437
- mysql
3538
- postgresql
3639

37-
addons:
38-
code_climate:
39-
repo_token: 870bc78f6d6257a97e7a2150c787294062775852f2608e132226d0d2a936bd05
40-
4140
env:
4241
global:
43-
- secure: "ikEVVNPGAX1NqgBPXdjxcPJ3ihO9TyTtaN4iX3d2Wv0GdlSKgRqtCXrWuttVfYGqSoHHWwvCR3qum7N44akLsntrkcIQXGu6CsTsvqDC+vAKHtC31TVmuTEXZyIYA7455+B+a8nMsrO5LjX1ylucV1ZhGLzA84lMRQYkr6PklK0=" # CODECLIMATE_REPO_TOKEN
42+
- CC_TEST_REPORTER_ID=301facccb751b8f202e8a382e9f74bda51055f738691cf2ee9a9b853ac807304
4443
- CF_RUN_PERM_SPECS=false
4544

4645
matrix:

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require File.expand_path('../../config/boot', __FILE__)
22

3-
if ENV['CODECLIMATE_REPO_TOKEN'] && ENV['COVERAGE']
3+
if ENV['COVERAGE']
44
require 'simplecov'
55
SimpleCov.start do
66
add_filter '/spec/'

0 commit comments

Comments
 (0)