Skip to content

Commit

Permalink
coverage generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Stwissel committed Jun 10, 2018
1 parent 7226161 commit 33b90d6
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -12,8 +12,8 @@ branches:
- develop
- /^greenkeeper/.*$/
after_success:
- npm run coverage
- npm run test-with-coverage
- npm run coveralls
- npm run codacy
deploy:
provider: npm
email: stw@linux.com
Expand Down
106 changes: 106 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -26,6 +26,7 @@
},
"devDependencies": {
"body-parser": "1.18.3",
"codacy-coverage": "^3.0.0",
"cookie-parser": "1.4.3",
"coveralls": "^3.0.1",
"express": "4.16.3",
Expand All @@ -45,10 +46,10 @@
},
"scripts": {
"preversion": "npm test",
"test": "nyc --reporter=text --reporter=html ./node_modules/mocha/bin/mocha ./test --reporter spec",
"test": "nyc --reporter=text --reporter=html --reporter=text-lcov --reporter=lcovonly ./node_modules/mocha/bin/mocha ./test --reporter spec",
"postversion": "git push && git push --tags",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"test-with-coverage": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | codacy-coverage"
"coveralls": "cat ./coverage/lcov.info | coveralls",
"codacy": "cat ./coverage/lcov.info | codacy-coverage"
},
"license": "MIT"
}

0 comments on commit 33b90d6

Please sign in to comment.