Skip to content

Commit

Permalink
Add Coveralls and Codecov integration
Browse files Browse the repository at this point in the history
  • Loading branch information
matheuss committed May 17, 2016
1 parent a0517d1 commit 5895a4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ language: node_js
node_js:
- '6'
- '5'
- '4'
- '4'

after_success:
- npm run coverage
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "A free and unlimited API for Google Translate",
"main": "index.js",
"scripts": {
"test": "xo && ava"
"test": "xo && nyc ava",
"coverage": "nyc report --reporter=text-lcov | coveralls && nyc report --reporter=text-lcov > coverage.lcov && codecov"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -35,6 +36,9 @@
},
"devDependencies": {
"ava": "^0.14.0",
"codecov": "^1.0.1",
"coveralls": "^2.11.9",
"nyc": "^6.4.4",
"xo": "^0.15.1"
},
"xo": {
Expand Down

0 comments on commit 5895a4b

Please sign in to comment.