summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-11-24 14:36:39 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-11-24 14:37:33 +0100
commitdceb150aff9dca50e1817636f03aa7fd7d1bb9a5 (patch)
tree77775158690c3c7774c7260534379c9c1389dd06
parenta632d9056853984aac6c930523a27fde42ae28a5 (diff)
downloadcoderay-dceb150aff9dca50e1817636f03aa7fd7d1bb9a5.tar.gz
try setting up code climate test coverage
-rw-r--r--.travis.yml17
1 files changed, 12 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 8191789..19932b4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,8 @@
env:
global:
- "JRUBY_OPTS=-Xcext.enabled=true"
+ - "CC_TEST_REPORTER_ID=faa393209ff0a104cf37511a9a03510bcee37951971b1ca4ffc2af217851d47e"
+language: ruby
rvm:
- 1.8.7
- ree
@@ -14,15 +16,20 @@ rvm:
- 2.6
- ruby-head
- jruby
-branches:
- only:
- - master
-before_script:
-- if (ruby -e "exit RUBY_VERSION.to_f >= 2.3"); then export RUBYOPT="--enable-frozen-string-literal"; fi; echo $RUBYOPT
matrix:
allow_failures:
- rvm: 1.8.7
- rvm: ruby-head
- rvm: jruby
+branches:
+ only:
+ - master
+before_script:
+ - if (ruby -e "exit RUBY_VERSION.to_f >= 2.3"); then export RUBYOPT="--enable-frozen-string-literal"; fi; echo $RUBYOPT
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
+ - chmod +x ./cc-test-reporter
+ - ./cc-test-reporter before-build
script: "rake test" # test:scanners"
+after_script:
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
sudo: false