Adding a single run karma task for later CI setup

This commit is contained in:
Jeff Avallone 2014-12-22 11:20:41 -05:00
parent 961d4812e9
commit 99970dd2ab

View File

@ -96,3 +96,13 @@ gulp.task('karma', function(done) {
configFile: path.join(__dirname, 'karma.conf.js')
}, done);
});
gulp.task('karma:single', function(done) {
var karma = require('karma'),
path = require('path');
karma.server.start({
configFile: path.join(__dirname, 'karma.conf.js'),
singleRun: true
}, done);
});