From 52d0fe02ae0b18fcbbf348f4b615d1ccf3ef0622 Mon Sep 17 00:00:00 2001 From: Jamie Mason Date: Sun, 26 Aug 2018 17:53:21 +0100 Subject: [PATCH] chore(ci): report test coverage to code climate --- .travis.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 26a6e56..ada7010 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,18 @@ +env: + global: + - CC_TEST_REPORTER_ID=d89a1aab357b12d8de6b1592d16fa766e2dddf8e3c5e5064f5333ab8444e5382 language: node_js - -sudo: false - +matrix: + fast_finish: true node_js: - - 6 - + - 8.11.1 before_script: -- npm install -g codeclimate-test-reporter -- npm run build - + - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./codeclimate-test-reporter + - chmod +x ./codeclimate-test-reporter + - ./codeclimate-test-reporter before-build + - npm run build script: -- npm test + - npm run lint + - npm run test:jest +after_script: + - ./codeclimate-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT