diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2012-06-11 21:46:06 +0200 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-06-11 15:53:46 -0400 |
commit | 6752994014946ca6a8315c26d2179eb5b0fdd3a2 (patch) | |
tree | d58a614bd395907b60613efd2bef99f010cbe398 /build/tasks | |
parent | f0d4da890356c68f4e29c7dbc1c0349bf2181c1c (diff) | |
download | jquery-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.js | 5 |
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"] |