Enable coverage on travis

This commit is contained in:
Daniel Tschinder 2016-07-12 22:20:31 +02:00
parent 15a391d305
commit 47d11ae084
No known key found for this signature in database
GPG Key ID: 0F9471CB6816A4FF
4 changed files with 18 additions and 7 deletions

View File

@ -1,3 +1,5 @@
.nyc_output
build
test
coverage
lib
test

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
.nyc_output
build
coverage
lib
node_modules

View File

@ -5,16 +5,20 @@ sudo: false
language: node_js
node_js:
- "6"
- "5"
- "4"
- "0.12"
- "6"
- "5"
- "4"
- "0.12"
before_script: make bootstrap-babel
script:
- npm test
- make test-babel
- npm run test_cov
- make test-babel
after_success:
- ./node_modules/.bin/nyc report --reporter=lcov > coverage.lcov
- bash <(curl -s https://codecov.io/bash)
notifications:
slack: babeljs:5Wy4QX13KVkGy9CnU0rmvgeK

View File

@ -25,6 +25,7 @@
"babel-preset-stage-0": "^6.5.0",
"kcheck": "^2.0.1",
"lodash": "^4.6.1",
"nyc": "^7.0.0",
"unicode-9.0.0": "~0.7.0"
},
"bin": {
@ -32,8 +33,10 @@
},
"scripts": {
"test": "npm run build && npm run lint && ava test/",
"test_cov": "npm run build && npm run lint && nyc ava test/",
"lint": "kcheck",
"build": "babel src --out-dir lib",
"preversion": "npm run test",
"watch": "babel src --out-dir lib --watch"
}
}