"use strict";
- grunt.registerTask( "testswarm", function( commit, configFile, browserSets ) {
+ grunt.registerTask( "testswarm", function( commit, configFile, browserSets, timeout ) {
var jobName,
testswarm = require( "testswarm" ),
runs = {},
config = grunt.file.readJSON( configFile ).jquery,
tests = grunt.config([ this.name, "tests" ]);
- if ( !browserSets ) {
- browserSets = [ "popular", "ios" ];
- }
-
if ( pull ) {
jobName = "Pull <a href='https://github.com/jquery/jquery/pull/" +
pull[ 1 ] + "'>#" + pull[ 1 ] + "</a>";
testswarm.createClient( {
url: config.swarmUrl,
pollInterval: 10000,
- timeout: 1000 * 60 * 30
+ timeout: timeout || 1000 * 60 * 30
} )
.addReporter( testswarm.reporters.cli )
.auth( {
name: jobName,
runs: runs,
runMax: config.runMax,
- browserSets: browserSets
+ browserSets: browserSets || [ "popular", "ios" ]
}, function( err, passed ) {
if ( err ) {
grunt.log.error( err );