diff --git a/services/filestore/.travis.yml b/services/filestore/.travis.yml index ee2f36ad1c..6adc08643a 100644 --- a/services/filestore/.travis.yml +++ b/services/filestore/.travis.yml @@ -10,6 +10,9 @@ install: - npm install - grunt install +before_script: + - grunt forever:app:start + script: - grunt test:unit - grunt test:acceptance diff --git a/services/filestore/Gruntfile.coffee b/services/filestore/Gruntfile.coffee index d2d066b543..91ae43bed1 100644 --- a/services/filestore/Gruntfile.coffee +++ b/services/filestore/Gruntfile.coffee @@ -2,6 +2,11 @@ module.exports = (grunt) -> # Project configuration. grunt.initConfig + forever: + app: + options: + index: "app.js" + coffee: server: expand: true, @@ -73,6 +78,7 @@ module.exports = (grunt) -> grunt.loadNpmTasks 'grunt-contrib-clean' grunt.loadNpmTasks 'grunt-concurrent' grunt.loadNpmTasks 'grunt-mocha-test' + grunt.loadNpmTasks 'grunt-forever' grunt.registerTask "test:unit", ["coffee", "mochaTest:unit"] grunt.registerTask "test:acceptence", ["coffee", "mochaTest:acceptence"] diff --git a/services/filestore/package.json b/services/filestore/package.json index 530f95d00b..919adc488f 100644 --- a/services/filestore/package.json +++ b/services/filestore/package.json @@ -37,6 +37,7 @@ "grunt-contrib-watch": "0.5.3", "grunt-nodemon": "0.2.1", "grunt-contrib-clean": "0.5.0", - "grunt-concurrent": "0.4.2" + "grunt-concurrent": "0.4.2", + "grunt-forever": "~0.4.4" } }