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 +});