From 3bf9725c7dd9a43864e0c4be3984639dde8e2a28 Mon Sep 17 00:00:00 2001 From: Craig Yamato Date: Mon, 15 Oct 2018 14:54:39 +0000 Subject: [PATCH] added Code Climate --- .travis.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1968f21..e586f40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,23 @@ language: node_js +env: + global: + - CC_TEST_REPORTER_ID=d10e83a9263c5cbcb99a4349cb7a46aec4350402acce96095c68f14f925c236f + node_js: - stable install: - npm install + +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 + - bundle exec rspec script: - - npm test \ No newline at end of file + - npm test + +after_script: + - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT \ No newline at end of file