aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks/testswarm.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-03-11 21:12:39 +0100
committerMichał Gołębiowski <m.goleb@gmail.com>2014-03-11 21:12:39 +0100
commita81dbc4ed82bc38b1ac5f6a8242e044232ea1594 (patch)
tree390ff1c55cf4331bb55bfef1a8add4ba28f8db03 /build/tasks/testswarm.js
parent14872941f9de78e7436e58ac1f03a4b2d5aa34e8 (diff)
downloadjquery-a81dbc4ed82bc38b1ac5f6a8242e044232ea1594.tar.gz
jquery-a81dbc4ed82bc38b1ac5f6a8242e044232ea1594.zip
Build: Allow to specify timeout in the testswarm task
Diffstat (limited to 'build/tasks/testswarm.js')
-rw-r--r--build/tasks/testswarm.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js
index 9a69b2253..135a3cc7e 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, browserSets ) {
+ grunt.registerTask( "testswarm", function( commit, configFile, browserSets, timeout ) {
var jobName,
testswarm = require( "testswarm" ),
runs = {},
@@ -11,10 +11,6 @@ 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>";
@@ -30,7 +26,7 @@ module.exports = function( grunt ) {
testswarm.createClient( {
url: config.swarmUrl,
pollInterval: 10000,
- timeout: 1000 * 60 * 30
+ timeout: timeout || 1000 * 60 * 30
} )
.addReporter( testswarm.reporters.cli )
.auth( {
@@ -42,7 +38,7 @@ module.exports = function( grunt ) {
name: jobName,
runs: runs,
runMax: config.runMax,
- browserSets: browserSets
+ browserSets: browserSets || [ "popular-no-old-ie", "ios" ]
}, function( err, passed ) {
if ( err ) {
grunt.log.error( err );