Skip to content

Commit 1bd41e1

Browse files
committed
Setup codeclimate coverage
1 parent 6a3e2bc commit 1bd41e1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ language: ruby
22

33
sudo: false
44

5+
env:
6+
global:
7+
- CC_TEST_REPORTER_ID=e3cc62c08862c0408fd35ab5170a962881519eeea88d35736a211f80731ce30b
8+
59
# We deviate from the rspec-dev cache setting here.
610
#
711
# Travis has special bundler support where it knows to run `bundle clean`
@@ -32,8 +36,16 @@ before_script:
3236
- rm -f bin/rails
3337
- bundle exec rails --version
3438

39+
# Download code climate
40+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
41+
- chmod +x ./cc-test-reporter
42+
- ./cc-test-reporter before-build
43+
3544
script: "script/run_build 2>&1"
3645

46+
after_script:
47+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
48+
3749
matrix:
3850
include:
3951
# Rails dev / 6 builds >= 2.4.4

0 commit comments

Comments
 (0)