Skip to content

Commit

Permalink
ci: add coveralls coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmeinke committed Jul 24, 2017
1 parent a5020ce commit 04f9ff1
Show file tree
Hide file tree
Showing 5 changed files with 387 additions and 309 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage/
cjs/
dist/
examples/*/dist.js
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.gitignore
.travis.yml
bundle.js
coverage/
src/
tests/
yarn.lock
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ script:
- npm run lint
- npm test
after_success:
- npm run coveralls
- npm run semantic-release
branches:
except:
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"babel-preset-es2015": "^6.24.1",
"bluebird": "^3.5.0",
"commitizen": "^2.9.6",
"coveralls": "^2.13.1",
"cz-conventional-changelog": "^2.0.0",
"jest": "^20.0.4",
"rimraf": "^2.6.1",
Expand All @@ -103,6 +104,10 @@
"homepage": "https://github.com/colinmeinke/wilderness-core#readme",
"license": "MIT",
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"src/*.js"
],
"testRegex": "/tests/.*.js"
},
"main": "cjs/index.js",
Expand All @@ -118,6 +123,7 @@
"build:cjs": "NODE_ENV=production BABEL_ENV=cjs babel src --out-dir cjs",
"build:modules": "NODE_ENV=production BABEL_ENV=modules babel src --out-dir modules",
"commit": "git-cz",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"fix": "standard --fix",
"lint": "standard --verbose | snazzy",
"prepublish": "npm run tidy && npm run build",
Expand Down
Loading

0 comments on commit 04f9ff1

Please sign in to comment.