Skip to content

Commit

Permalink
Build: Make it possible to change browserSets in the testswarm task
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol committed Mar 10, 2014
1 parent 0c12cb3 commit 1487294
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/tasks/testswarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {},
Expand All @@ -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>";
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 1487294

Please sign in to comment.