diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index 0146ab669..bb1adc371 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -3,6 +3,7 @@ module.exports = function( grunt ) { grunt.registerTask( "testswarm", function( commit, configFile ) { var test, testswarm = require( "testswarm" ), + config = grunt.file.readJSON( configFile ).jqueryui, testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/tests/unit/", testUrls = [], tests = { @@ -40,9 +41,9 @@ grunt.registerTask( "testswarm", function( commit, configFile ) { done: this.async() }, { authUsername: "jqueryui", - authToken: grunt.file.readJSON( configFile ).jqueryui.authToken, + authToken: config.authToken, jobName: 'jQuery UI commit #' + commit.substr( 0, 10 ) + '', - runMax: 3, + runMax: config.runMax, "runNames[]": Object.keys(tests), "runUrls[]": testUrls, "browserSets[]": ["popular"]