run acceptance tests on travis under forever

This commit is contained in:
Brian Gough 2014-12-22 13:41:07 +00:00
parent ad379ec103
commit f4ac7d422b
3 changed files with 11 additions and 1 deletions

View file

@ -10,6 +10,9 @@ install:
- npm install
- grunt install
before_script:
- grunt forever:app:start
script:
- grunt test:unit
- grunt test:acceptance

View file

@ -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"]

View file

@ -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"
}
}