Skip to content

Commit 21856b7

Browse files
committed
Add cc test reporter to travis
1 parent a89e09b commit 21856b7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ sudo: false
33
language: node_js
44
cache: yarn
55

6+
env:
7+
global:
8+
- CC_TEST_REPORTER_ID=9f4bef923b520da4cbdb209f004a8db49b215fc0f443efd2a1698585e65c21cb
9+
610
node_js:
711
- '8'
812
- '6'
@@ -14,13 +18,16 @@ before_install:
1418

1519
before_script:
1620
- yarn build
21+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
22+
- chmod +x ./cc-test-reporter
23+
- ./cc-test-reporter before-build
1724

1825
script:
1926
- if [ -n "${LINT-}" ]; then yarn lint; fi
2027
- if [ -z "${SKIPTESTS-}" ]; then yarn cover; fi
2128

2229
after_script:
23-
- codeclimate-test-reporter < coverage/lcov.info
30+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2431

2532
matrix:
2633
include:

0 commit comments

Comments
 (0)