Skip to content

Commit

Permalink
Merge pull request #92 from aydrian/ISSUE-89
Browse files Browse the repository at this point in the history
Adding Coveralls.io
  • Loading branch information
aydrian committed Aug 7, 2015
2 parents e97eb18 + 7962c50 commit 82e10d7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_js:
- '0.10'
before_install: npm install -g grunt-cli
install: npm install
script: "npm run-script ci"
notifications:
slack:
secure: dsz+D/TuylEi+6zqdB5dVqyMlpbpafaBBcAwYIijTK6LuG8KdIdGNSFVX1ro6o3bJFwMvtfxNeK1eFrMy8l6VHZQL0dkXWRmCl/pxLhEntUiYTDwDOtiqy1QLZtv5AqtsdSr1qLiOJtgF6gXk66xipnV2UzjLVVoxzSrdOSnX4U=
8 changes: 8 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ module.exports = function(grunt) {
failOnError : true
}
}
},
coveralls: {
options: {
force: true
},
grunt_coveralls_coverage: {
src: 'test/reports/lcov.info'
}
}
});

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Travis CI](https://travis-ci.org/SparkPost/node-sparkpost.svg?branch=master)](https://travis-ci.org/SparkPost/node-sparkpost)
[![Travis CI](https://travis-ci.org/SparkPost/node-sparkpost.svg?branch=master)](https://travis-ci.org/SparkPost/node-sparkpost) [![Coverage Status](https://coveralls.io/repos/SparkPost/node-sparkpost/badge.svg?branch=master&service=github)](https://coveralls.io/github/SparkPost/node-sparkpost?branch=master)

![SparkPost Build by MessageSystems](/docs/sparkpost_logo.png)
# Node.js SDK
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "A Node.js wrapper for interfacing with your favorite SparkPost APIs",
"main": "./lib/sparkpost.js",
"scripts": {
"test": "grunt"
"test": "grunt",
"ci": "grunt && grunt coveralls:grunt_coveralls_coverage"
},
"keywords": [
"email",
"messaging"
],
],
"repository": {
"type": "git",
"url": "https://github.com/SparkPost/node-sparkpost"
Expand All @@ -25,6 +26,7 @@
"grunt": "0.4.5",
"grunt-bump": "^0.3.1",
"grunt-contrib-jshint": "0.10.0",
"grunt-coveralls": "^1.0.0",
"grunt-shell": "1.1.1",
"istanbul": "0.3.2",
"jshint-stylish": "0.4.0",
Expand All @@ -38,7 +40,7 @@
"xunit-file": "0.0.5"
},
"dependencies": {
"lodash": "3.9.3",
"lodash": "^3.9.3",
"request": "2.42.0"
}
}

0 comments on commit 82e10d7

Please sign in to comment.