Skip to content

Commit

Permalink
chore: Added codecov support
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Sep 7, 2016
1 parent 9334498 commit 7708aa5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Expand Up @@ -10,11 +10,11 @@ pids
# IDE
.idea

# Directory for instrumented libs generated by jscoverage/JSCover
# Code coverage
.nyc_output
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -14,4 +14,5 @@ node_js:
- "iojs"
- "0.12"
- "0.11"
- "0.10"
- "0.10"
after_success: npm run report-coverage
27 changes: 23 additions & 4 deletions package.json
Expand Up @@ -3,8 +3,8 @@
"description": "Determine an app's root path from anywhere inside the app",
"main": "index.js",
"scripts": {
"test": "node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"test-only": "mocha -R spec",
"test": "nyc mocha -R spec",
"report-coverage": "npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov",
"release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
Expand All @@ -30,10 +30,29 @@
},
"homepage": "https://github.com/inxilpro/node-app-root-path",
"devDependencies": {
"mocha": "^2.0.1",
"codecov": "^1.0.1",
"coveralls": "^2.11.2",
"cracks": "^3.1.2",
"cz-conventional-changelog": "^1.2.0",
"ghooks": "^1.3.2",
"istanbul": "^0.3.4",
"mocha": "^2.0.1",
"mocha-lcov-reporter": "0.0.1",
"semantic-release": "^4.3.5"
"nyc": "^8.1.0",
"semantic-release": "^4.3.5",
"validate-commit-msg": "^2.8.0"
},
"release": {
"verifyRelease": "cracks"
},
"config": {
"ghooks": {
"commit-msg": "validate-commit-msg",
"post-merge": "npm install",
"post-rewrite": "npm install"
},
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 7708aa5

Please sign in to comment.