From f55d806b72f7e320180385e6d634ce350a34fa8b Mon Sep 17 00:00:00 2001 From: liabru Date: Tue, 4 Aug 2015 19:53:15 +0100 Subject: [PATCH] fix grunt for travis --- Gruntfile.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index a22fee6..d1ad3f9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -66,6 +66,11 @@ module.exports = function(grunt) { open: 'http://localhost:9000/demo/dev.html', livereload: 9001 } + }, + serve: { + options: { + port: 9000 + } } }, watch: { @@ -134,10 +139,11 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-shell'); grunt.registerTask('default', ['test', 'build']); - grunt.registerTask('test', ['jshint', 'testDemo']); + grunt.registerTask('test', ['jshint', 'test:demo']); + grunt.registerTask('test:all', ['build:dev', 'connect:serve', 'test']); grunt.registerTask('dev', ['build:dev', 'connect:watch', 'watch']); - grunt.registerTask('testDemo', function() { + grunt.registerTask('test:demo', function() { var updateAll = grunt.option('updateAll'), diff = grunt.option('diff');