]> source.dussan.org Git - jquery-ui.git/commitdiff
Grunt: Update testswarm task to use more config props
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 13 Jun 2012 22:24:51 +0000 (00:24 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 13 Jun 2012 22:24:51 +0000 (00:24 +0200)
build/tasks/testswarm.js

index bb1adc371894081789ccb7ee511f2f078fe420fc..421e8944fb6e62cf8833ac18e0c5ddd35db18afa 100644 (file)
@@ -4,7 +4,7 @@ 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/",
+               testBase = config.testUrl + commit + "/tests/unit/",
                testUrls = [],
                tests = {
                        "Accordion": "accordion/accordion.html",
@@ -35,7 +35,7 @@ grunt.registerTask( "testswarm", function( commit, configFile ) {
                testUrls.push( testBase + tests[ test ] + "?nojshint=true" );
        }
        testswarm({
-               url: "http://swarm.jquery.org/",
+               url: config.swarmUrl,
                pollInterval: 10000,
                timeout: 1000 * 60 * 30,
                done: this.async()