]> source.dussan.org Git - jquery.git/commitdiff
Grunt: Update testswarm task to use more config properties. Already deployed on Jenki...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 7 Jun 2012 18:36:19 +0000 (20:36 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 7 Jun 2012 18:36:19 +0000 (20:36 +0200)
grunt.js

index 58329faa986e2bb056ea822bc28f7041fec539a2..d3e0c7f6a79a564dce060d3ae0abdcd69b24cceb 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -131,19 +131,20 @@ module.exports = function( grunt ) {
 
        grunt.registerTask( "testswarm", function( commit, configFile ) {
                var testswarm = require( "testswarm" ),
-                       testUrls = [];
+                       testUrls = [],
+                       config = grunt.file.readJSON( configFile ).jquery;
                var tests = "ajax attributes callbacks core css data deferred dimensions effects event manipulation offset queue selector support traversing".split( " " );
                tests.forEach(function( test ) {
-                       testUrls.push( "http://swarm.jquery.org/git/jquery/" + commit + "/test/index.html?filter=" + test );
+                       testUrls.push( config.testUrl + commit + "/test/index.html?filter=" + test );
                });
                testswarm({
-                       url: "http://swarm.jquery.org/",
+                       url: config.swarmUrl,
                        pollInterval: 10000,
                        timeout: 1000 * 60 * 30,
                        done: this.async()
                }, {
-                       authUsername: "jquery",
-                       authToken: grunt.file.readJSON( configFile ).jquery.authToken,
+                       authUsername: config.authUsername,
+                       authToken: config.authToken,
                        jobName: 'jQuery commit #<a href="https://github.com/jquery/jquery/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>',
                        runMax: 4,
                        "runNames[]": tests,