Use grunt forever to run service daemonized for acceptance testing on travis

This commit is contained in:
James Allen 2014-02-26 16:44:13 +00:00
parent 53db11466b
commit 3570e8f408
4 changed files with 10 additions and 2 deletions

View file

@ -4,3 +4,4 @@ app/js
app.js
test/unit/js
test/acceptance/js
forever/

View file

@ -11,7 +11,7 @@ install:
- grunt install
before_script:
- grunt run
- grunt forever:app:start
script:
- grunt test:unit

View file

@ -5,8 +5,14 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-available-tasks'
grunt.loadNpmTasks 'grunt-execute'
grunt.loadNpmTasks 'grunt-bunyan'
grunt.loadNpmTasks 'grunt-forever'
grunt.initConfig
forever:
app:
options:
index: "app.js"
execute:
app:
src: "app.js"

View file

@ -21,6 +21,7 @@
"grunt-available-tasks": "~0.4.2",
"grunt-contrib-coffee": "~0.10.1",
"bunyan": "~0.22.1",
"grunt-bunyan": "~0.5.0"
"grunt-bunyan": "~0.5.0",
"grunt-forever": "~0.4.2"
}
}