aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks
diff options
context:
space:
mode:
authorTimo Tijhof <krinklemail@gmail.com>2012-06-11 21:46:06 +0200
committerScott González <scott.gonzalez@gmail.com>2012-06-11 15:53:46 -0400
commit6752994014946ca6a8315c26d2179eb5b0fdd3a2 (patch)
treed58a614bd395907b60613efd2bef99f010cbe398 /build/tasks
parentf0d4da890356c68f4e29c7dbc1c0349bf2181c1c (diff)
downloadjquery-ui-6752994014946ca6a8315c26d2179eb5b0fdd3a2.tar.gz
jquery-ui-6752994014946ca6a8315c26d2179eb5b0fdd3a2.zip
Test: Set testswarm.runMax from config file
Diffstat (limited to 'build/tasks')
-rw-r--r--build/tasks/testswarm.js5
1 files changed, 3 insertions, 2 deletions
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 #<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>',
- runMax: 3,
+ runMax: config.runMax,
"runNames[]": Object.keys(tests),
"runUrls[]": testUrls,
"browserSets[]": ["popular"]