From 6b6f708f031c1bb572518efc81961c7a897fcdcf Mon Sep 17 00:00:00 2001 From: Chris Colvard Date: Mon, 25 Mar 2019 19:38:56 -0700 Subject: [PATCH] Setup CodeClimate --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 21957b2..fa0d74a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,3 +13,10 @@ env: - "RAILS_VERSION=5.0.7.1" global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true + - CC_TEST_REPORTER_ID=e52010675d2774ee408c14c0de08c143d0749e59beb6dd729254d1b3ea94c7b1 +before_script: + - 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 +after_script: + - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT