Skip to content

Commit

Permalink
ci(nyc): Enforce 100% code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Aug 29, 2017
1 parent a97513e commit 35610c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ jobs:
script: npm run test
after_success:
- if [ -n "${CODECOV_TOKEN:-}" ]; then npm run codecov; fi
- npm run coverage
- npm run semantic-release
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"node-sass": "^4.5.3",
"nyc": "^11.0.3",
"p-event": "^1.3.0",
"p-timeout": "^1.2.0",
"pify": "^3.0.0",
"prettier": "^1.5.3",
"proxyquire": "^1.8.0",
Expand Down Expand Up @@ -79,9 +78,18 @@
"license": "MIT",
"main": "lib/index.js",
"nyc": {
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"include": [
"lib/*.js"
]
],
"reporter": [
"lcov",
"text"
],
"all": true
},
"peerDependencies": {
"karma": "*",
Expand Down Expand Up @@ -111,13 +119,14 @@
"codecov": "codecov",
"commitmsg": "commitlint -e",
"compile": "rimraf lib && babel src --source-maps --out-dir lib",
"coverage": "nyc check-coverage",
"lint": "eslint src test package.json",
"postcheckout": "yarn install || (rimraf && npm install)",
"precommit": "npm run compile && npm run lint",
"prepublishOnly": "npm run compile",
"prepush": "ava -v",
"pretest": "npm run clean && npm run compile && npm run lint",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "nyc --all ava -v && nyc report --reporter=lcov"
"test": "nyc ava -v"
}
}

0 comments on commit 35610c5

Please sign in to comment.