aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-03-10 20:37:11 +0100
committerMichał Gołębiowski <m.goleb@gmail.com>2014-03-10 20:37:11 +0100
commit14872941f9de78e7436e58ac1f03a4b2d5aa34e8 (patch)
treea46da816357efc11bc616d9e84b1bbb866c9c767 /build
parent0c12cb3910c446960a274fb0eab11b8830bed71f (diff)
downloadjquery-14872941f9de78e7436e58ac1f03a4b2d5aa34e8.tar.gz
jquery-14872941f9de78e7436e58ac1f03a4b2d5aa34e8.zip
Build: Make it possible to change browserSets in the testswarm task
Diffstat (limited to 'build')
-rw-r--r--build/tasks/testswarm.js8
1 files changed, 6 insertions, 2 deletions
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 <a href='https://github.com/jquery/jquery/pull/" +
pull[ 1 ] + "'>#" + pull[ 1 ] + "</a>";
@@ -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 );