From 95699bbca659709d34fc3563c503e636fa5b2985 Mon Sep 17 00:00:00 2001 From: "Higgins, Joshua" Date: Tue, 10 Mar 2015 10:47:44 -0400 Subject: [PATCH] add support for travis / future testing, closes #21 --- .travis.yml | 3 +++ Gruntfile.js | 6 +++++- README.MD | 2 ++ package.json | 3 ++- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..796d98f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - "0.12" diff --git a/Gruntfile.js b/Gruntfile.js index efe987c..545ef94 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -65,4 +65,8 @@ module.exports = function( grunt ) { 'usebanner' ]); -}; \ No newline at end of file + grunt.registerTask( 'test', [ + 'jshint' + ]); + +}; diff --git a/README.MD b/README.MD index 7b19cb4..c15dbcf 100644 --- a/README.MD +++ b/README.MD @@ -2,6 +2,8 @@ Angular module for the popular Packery library. +![Travis CI](https://api.travis-ci.org/sungard-labs/angular-packery.png) + #### Requirements #### diff --git a/package.json b/package.json index 3fccfb5..60852da 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "grunt-banner": "~0.2.3" }, "scripts": { - "postinstall": "bower install" + "postinstall": "bower install", + "test": "grunt test --verbose" }, "license": "MIT" }