mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Merge pull request #1095 from flomotlik/travis-ci-testing
Run npm coverage as part of travis
This commit is contained in:
commit
b4da474c60
@ -9,4 +9,8 @@ install:
|
||||
- travis_retry npm install
|
||||
|
||||
script:
|
||||
- npm test
|
||||
- ./scripts/eslint.sh
|
||||
|
||||
after_success:
|
||||
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
|
||||
|
||||
@ -34,8 +34,7 @@
|
||||
"serverless-run-python-handler": "./bin/serverless-run-python-handler"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha tests/all",
|
||||
"coverage": "istanbul cover _mocha tests/all --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
|
||||
"test": "istanbul cover _mocha tests/all -- -R spec",
|
||||
"lint": "eslint . || true"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user