From 9eedd439705af4a15644e856d22377dc62c10f3f Mon Sep 17 00:00:00 2001 From: Nelson Omuto Date: Sat, 4 Oct 2014 20:16:13 -0400 Subject: [PATCH] fixes #81: integrating with Travis CI --- .travis.yml | 8 ++++++++ Gruntfile.js | 2 ++ test/materialSpec.js | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..19da2e05 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: node_js +node_js: + - "0.10" +before_script: + - 'npm install -g grunt-cli' + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start +script: 'grunt cibuild' \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index d904c75a..f9507014 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -176,4 +176,6 @@ module.exports = function(grunt) { "watch" ]); }); + + grunt.registerTask('cibuild',["newer:jshint", "jasmine:scripts"]); }; diff --git a/test/materialSpec.js b/test/materialSpec.js index 19e026fb..41193aee 100644 --- a/test/materialSpec.js +++ b/test/materialSpec.js @@ -6,4 +6,4 @@ describe('Material', function (){ it('jquery should be loaded', function () { expect($).toBeDefined(); }); -}); \ No newline at end of file +});