Enable coverage on travis
This commit is contained in:
parent
15a391d305
commit
47d11ae084
@ -1,3 +1,5 @@
|
||||
.nyc_output
|
||||
build
|
||||
test
|
||||
coverage
|
||||
lib
|
||||
test
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
.nyc_output
|
||||
build
|
||||
coverage
|
||||
lib
|
||||
node_modules
|
||||
|
||||
16
.travis.yml
16
.travis.yml
@ -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
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user