diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index 7907d0f12..9a69b2253 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-no-old-ie", "ios" ]; + } + if ( pull ) { jobName = "Pull #" + pull[ 1 ] + ""; @@ -38,7 +42,7 @@ module.exports = function( grunt ) { name: jobName, runs: runs, runMax: config.runMax, - browserSets: [ "popular-no-old-ie", "ios" ] + browserSets: browserSets }, function( err, passed ) { if ( err ) { grunt.log.error( err );