Skip to content

Commit

Permalink
Add codacy coverage reporter - final
Browse files Browse the repository at this point in the history
  • Loading branch information
xurei committed Jan 18, 2019
1 parent e456781 commit 3cd7ad9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -11,7 +11,9 @@
"serve-doc": "sh scripts/serve-doc.sh",
"tslint": "node_modules/.bin/tslint -p .",
"test": "node_modules/.bin/nyc mocha --opts ./mocha.opts test/*.ts",
"coverage": "node_modules/.bin/nyc report --reporter=json --reporter=lcov && node_modules/.bin/codecov -f coverage/*.json && cat coverage/lcov.info | node_modules/.bin/codacy-coverage -v | grep \\\\[debug\\\\]"
"coverage": "node_modules/.bin/nyc report --reporter=json --reporter=lcov",
"coverage:codecov": "node_modules/.bin/codecov -f coverage/*.json",
"coverage:codacy": "echo \"Sending coverage to Codacy...\" && cat coverage/lcov.info | node_modules/.bin/codacy-coverage -v | grep \\\\[debug\\\\]"
},
"keywords": [
"REST",
Expand Down
8 changes: 5 additions & 3 deletions wercker.yml
Expand Up @@ -10,9 +10,9 @@ build:
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
- npm-install

- script:
name: npm run build
code: |
Expand All @@ -22,8 +22,10 @@ build:
name: npm tests
code: |
MONGO_URI="mongodb://${MONGO_PORT_27017_TCP_ADDR}:27017/" npm run test
- script:
name: Code coverage
code: |
npm run coverage
npm run coverage:codecov
npm run coverage:codacy

0 comments on commit 3cd7ad9

Please sign in to comment.