Merge pull request #3280 from strongloop/coveralls-2x

Add nyc coverage, report data to coveralls.io
This commit is contained in:
Miroslav Bajtoš 2017-03-14 14:20:40 +01:00 committed by GitHub
commit 85c81f760c
4 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@
node_modules node_modules
dist dist
*xunit.xml *xunit.xml
.nyc_output/

7
.nycrc Normal file
View File

@ -0,0 +1,7 @@
{
"exclude": [
"Gruntfile.js",
"test/**/*.js"
],
"cache": true
}

View File

@ -5,6 +5,7 @@ node_js:
- "0.12" - "0.12"
- "4" - "4"
- "6" - "6"
after_success: npm run coverage
# see https://www.npmjs.com/package/phantomjs-prebuilt#continuous-integration # see https://www.npmjs.com/package/phantomjs-prebuilt#continuous-integration
cache: cache:

View File

@ -32,7 +32,8 @@
"mBaaS" "mBaaS"
], ],
"scripts": { "scripts": {
"test": "grunt mocha-and-karma" "coverage": "nyc report --reporter=text-lcov | coveralls",
"test": "nyc grunt mocha-and-karma"
}, },
"dependencies": { "dependencies": {
"async": "^2.0.1", "async": "^2.0.1",
@ -67,6 +68,7 @@
"browserify": "^13.1.0", "browserify": "^13.1.0",
"chai": "^3.5.0", "chai": "^3.5.0",
"es5-shim": "^4.1.0", "es5-shim": "^4.1.0",
"coveralls": "^2.11.15",
"express-session": "^1.14.0", "express-session": "^1.14.0",
"grunt": "^1.0.1", "grunt": "^1.0.1",
"grunt-browserify": "^5.0.0", "grunt-browserify": "^5.0.0",
@ -90,6 +92,7 @@
"loopback-datasource-juggler": "^2.19.1", "loopback-datasource-juggler": "^2.19.1",
"loopback-testing": "^1.4.0", "loopback-testing": "^1.4.0",
"mocha": "^3.0.0", "mocha": "^3.0.0",
"nyc": "^10.1.2",
"phantomjs-prebuilt": "^2.1.7", "phantomjs-prebuilt": "^2.1.7",
"sinon": "^1.13.0", "sinon": "^1.13.0",
"sinon-chai": "^2.8.0", "sinon-chai": "^2.8.0",