From a59a1cd17a9814fbd9ee26430e48cf91d3f537a8 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Mon, 10 Mar 2014 20:37:11 +0100 Subject: Build: Make it possible to change browserSets in the testswarm task (cherry-picked from 14872941f9de78e7436e58ac1f03a4b2d5aa34e8) --- build/tasks/testswarm.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index a6015c34d..0c1e3796d 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -2,7 +2,7 @@ module.exports = function( grunt ) { "use strict"; - grunt.registerTask( "testswarm", function( commit, configFile ) { + grunt.registerTask( "testswarm", function( commit, configFile, browserSets ) { var jobName, testswarm = require( "testswarm" ), runs = {}, @@ -11,6 +11,10 @@ module.exports = function( grunt ) { config = grunt.file.readJSON( configFile ).jquery, tests = grunt.config([ this.name, "tests" ]); + if ( !browserSets ) { + browserSets = [ "popular", "ios" ]; + } + if ( pull ) { jobName = "Pull #" + pull[ 1 ] + ""; @@ -38,7 +42,7 @@ module.exports = function( grunt ) { name: jobName, runs: runs, runMax: config.runMax, - browserSets: [ "popular", "ios" ] + browserSets: browserSets }, function( err, passed ) { if ( err ) { grunt.log.error( err ); -- cgit v1.2.3