define karma task for continuous integration

This commit is contained in:
Dušan Juretić 2013-10-31 22:45:10 -03:00
parent f4ac5dfe8c
commit 142024b818
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,11 @@ module.exports = function(grunt) {
karma: {
unit: {
configFile: 'karma.conf.js'
},
continuous: {
configFile: 'karma.conf.js',
singleRun: true,
autoWatch: false
}
},

View file

@ -55,7 +55,7 @@
"npm": "1.2.x"
},
"scripts": {
"test": "grunt karma",
"test": "grunt karma:continuous",
"start": "grunt run:dev",
"postinstall": "./node_modules/bower/bin/bower install -f"
},