File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change
1
+ env :
2
+ global :
3
+ - CC_TEST_REPORTER_ID=432df2a7d2692b54e9c072feb2c8cec8cd943456c14800c18445b6e65f709a3c
1
4
language : node_js
2
5
cache :
3
6
directories :
@@ -8,6 +11,14 @@ node_js:
8
11
- ' 10'
9
12
- ' 9'
10
13
- ' 8'
14
+ before_script :
15
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16
+ - chmod +x ./cc-test-reporter
17
+ - ./cc-test-reporter before-build
18
+ after_script :
19
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
20
+ script :
21
+ - npm run test:coverage
11
22
after_success :
12
23
- npm run build
13
24
- npm run travis-deploy-once "npm run semantic-release"
Original file line number Diff line number Diff line change 5
5
"main" : " dist/index.js" ,
6
6
"scripts" : {
7
7
"test" : " jest" ,
8
+ "test:coverage" : " npm t -- --coverage" ,
8
9
"build" : " babel src -d dist" ,
9
10
"semantic-release" : " semantic-release" ,
10
11
"travis-deploy-once" : " travis-deploy-once" ,
You can’t perform that action at this time.
0 commit comments