Skip to content

Commit

Permalink
ci: setup codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken committed May 27, 2020
1 parent 920d6fd commit 4c18f98
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
after_success: npm run coverage
118 changes: 118 additions & 0 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"scripts": {
"start": "node index.js",
"prepublishOnly": "pkg-ok",
"test": "cross-env psp && ava --verbose",
"test": "cross-env psp && c8 -r=\"lcov\" ava --verbose",
"doc": "jsdoc -c ./jsdoc.json -r -R ./README.md -P ./package.json --verbose",
"coverage": "c8 -r=\"html\" npm test"
"coverage": "codecov"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -46,6 +46,7 @@
"@slimio/psp": "^0.11.1",
"ava": "^3.8.2",
"c8": "^7.1.2",
"codecov": "^3.7.0",
"cross-env": "^7.0.2",
"eslint": "^7.0.0",
"husky": "^4.2.5",
Expand Down

0 comments on commit 4c18f98

Please sign in to comment.