From 7962c506b6146822f9f9e1002cdfa28c424876cb Mon Sep 17 00:00:00 2001 From: "Aydrian J. Howard" Date: Fri, 7 Aug 2015 09:04:19 -0400 Subject: [PATCH] Implementing Coveralls.io --- .travis.yml | 1 + Gruntfile.js | 8 ++++++++ README.md | 2 +- package.json | 8 +++++--- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b3ee2c2..7bd65f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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= diff --git a/Gruntfile.js b/Gruntfile.js index 8da4b37..1bbc852 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -52,6 +52,14 @@ module.exports = function(grunt) { failOnError : true } } + }, + coveralls: { + options: { + force: true + }, + grunt_coveralls_coverage: { + src: 'test/reports/lcov.info' + } } }); diff --git a/README.md b/README.md index e5ae0b5..d9c31d9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 68c4f11..671c802 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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", @@ -38,7 +40,7 @@ "xunit-file": "0.0.5" }, "dependencies": { - "lodash": "3.9.3", + "lodash": "^3.9.3", "request": "2.42.0" } }