Skip to content

Commit

Permalink
Generate and report coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosichert committed Jul 28, 2016
1 parent 9d2dd20 commit 4f7d120
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.nyc_output
lib
node_modules
*.log
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ addons:
- libgif-dev
- libjpeg8-dev
- libpango1.0-dev
after_success: npm run report-coverage
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
],
"scripts": {
"compile": "babel ./src --out-dir ./lib",
"coverage": "nyc npm test && nyc report --reporter=text-lcov",
"lint": "eslint .",
"prepublish": "npm run compile",
"preversion": "npm run test",
"report-coverage": "npm run coverage | coveralls",
"test": "npm run lint && mocha --compilers js:babel-core/register",
"travis": "npm run compile && npm run test"
},
Expand Down Expand Up @@ -40,12 +42,14 @@
"babel-preset-react": "6.5.0",
"canvas": "1.4.0",
"common-tags": "1.3.1",
"coveralls": "2.11.12",
"eslint": "2.9.0",
"eslint-config-onelint": "1.1.0",
"eslint-config-onelint-react": "0.0.3",
"eslint-plugin-react": "4.3.0",
"jsdom": "9.4.1",
"mocha": "2.5.3",
"nyc": "7.1.0",
"raf": "3.2.0",
"react": "15.2.1",
"react-addons-test-utils": "15.2.1",
Expand Down

0 comments on commit 4f7d120

Please sign in to comment.