aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-06-07 20:36:19 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-06-07 20:36:19 +0200
commit0344a390b7673e2f014dc120a4cc5d3492731369 (patch)
treece193e01683caa09330fe358faf2a1340270cd53
parenta86ed30f0aa9e656a7b64dda18debb386c27518e (diff)
downloadjquery-0344a390b7673e2f014dc120a4cc5d3492731369.tar.gz
jquery-0344a390b7673e2f014dc120a4cc5d3492731369.zip
Grunt: Update testswarm task to use more config properties. Already deployed on Jenkins server
-rw-r--r--grunt.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/grunt.js b/grunt.js
index 58329faa9..d3e0c7f6a 100644
--- 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,