Merge pull request #1095 from flomotlik/travis-ci-testing

Run npm coverage as part of travis
This commit is contained in:
Florian Motlik 2016-05-11 11:54:44 +02:00
commit b4da474c60
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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": {