From 99970dd2abb8c7fdcd530750f5586417b21f5e7c Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Mon, 22 Dec 2014 11:20:41 -0500 Subject: [PATCH] Adding a single run karma task for later CI setup --- gulpfile.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index e919380..6996197 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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); +});