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 cdc45d6 commit 395cc63
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 8 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,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
112 changes: 112 additions & 0 deletions package-lock.json

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

12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "index.js",
"scripts": {
"prepublishOnly": "pkg-ok",
"test": "cross-env psp && node test/test.js",
"test": "cross-env psp && nyc --reporter=lcov node test/test.js",
"doc": "jsdoc -c ./jsdoc.json -r -R ./README.md -P ./package.json --verbose",
"coverage": "nyc npm test",
"coverage": "codecov",
"report": "nyc report --reporter=html"
},
"keywords": [
Expand All @@ -33,6 +33,7 @@
"@slimio/eslint-config": "^4.1.0",
"@slimio/is": "^1.5.1",
"@slimio/psp": "^0.11.1",
"codecov": "^3.7.0",
"cross-env": "^7.0.2",
"del": "^5.1.0",
"dotenv": "^8.2.0",
Expand All @@ -55,11 +56,6 @@
}
},
"nyc": {
"check-coverage": true,
"per-file": false,
"lines": 98,
"statements": 98,
"functions": 98,
"branches": 90
"check-coverage": false
}
}

0 comments on commit 395cc63

Please sign in to comment.