Skip to content

Commit 6752994

Browse files
Krinklescottgonzalez
authored andcommitted
Test: Set testswarm.runMax from config file
1 parent f0d4da8 commit 6752994

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build/tasks/testswarm.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module.exports = function( grunt ) {
33
grunt.registerTask( "testswarm", function( commit, configFile ) {
44
var test,
55
testswarm = require( "testswarm" ),
6+
config = grunt.file.readJSON( configFile ).jqueryui,
67
testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/tests/unit/",
78
testUrls = [],
89
tests = {
@@ -40,9 +41,9 @@ grunt.registerTask( "testswarm", function( commit, configFile ) {
4041
done: this.async()
4142
}, {
4243
authUsername: "jqueryui",
43-
authToken: grunt.file.readJSON( configFile ).jqueryui.authToken,
44+
authToken: config.authToken,
4445
jobName: 'jQuery UI commit #<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>',
45-
runMax: 3,
46+
runMax: config.runMax,
4647
"runNames[]": Object.keys(tests),
4748
"runUrls[]": testUrls,
4849
"browserSets[]": ["popular"]

0 commit comments

Comments
 (0)