diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-04-09 14:22:37 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-04-09 14:22:37 -0400 |
commit | 5b9e6a44d8b7c3b1c67e71b448951153bec15c95 (patch) | |
tree | 5386f854223662123572c24a46412a30f6af6ffa /build/tasks | |
parent | cdff8de18ff6b52b773e1dc017fea2475f01ee08 (diff) | |
download | jquery-ui-5b9e6a44d8b7c3b1c67e71b448951153bec15c95.tar.gz jquery-ui-5b9e6a44d8b7c3b1c67e71b448951153bec15c95.zip |
Tests: Renamed TestSwarm jobs.
Diffstat (limited to 'build/tasks')
-rw-r--r-- | build/tasks/testswarm.js | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index e204936cf..2db312048 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -33,37 +33,40 @@ var versions = { "Widget": "widget/widget.html" }; -function submit( commit, runs, configFile, version, done ) { +function submit( commit, runs, configFile, extra, done ) { var testName, testswarm = require( "testswarm" ), - config = grunt.file.readJSON( configFile ).jqueryui; - version = version ? ( version + " " ) : ""; + config = grunt.file.readJSON( configFile ).jqueryui, + commitUrl = "https://github.com/jquery/jquery-ui/commit/" + commit; + + if ( extra ) { + extra = " " + extra; + } + for ( testName in runs ) { - runs[ testName] = config.testUrl + commit + "/tests/unit/" + runs[ testName ]; + runs[ testName ] = config.testUrl + commit + "/tests/unit/" + runs[ testName ]; } - testswarm.createClient( { + testswarm.createClient({ url: config.swarmUrl, pollInterval: 10000, timeout: 1000 * 60 * 45 - } ) + }) .addReporter( testswarm.reporters.cli ) - .auth( { + .auth({ id: config.authUsername, token: config.authToken - } ) - .addjob( - { - name: "jQuery UI " + version + "#<a href='https://github.com/jquery/jquery-ui/commit/" + commit + "'>" + commit.substr( 0, 10 ) + "</a>", - runs: runs, - runMax: config.runMax, - browserSets: config.browserSets - }, function( err, passed ) { - if ( err ) { - grunt.log.error( err ); - } - done( passed ); + }) + .addjob({ + name: "jQuery UI #<a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra, + runs: runs, + runMax: config.runMax, + browserSets: config.browserSets + }, function( error, passed ) { + if ( error ) { + grunt.log.error( error ); } - ); + done( passed ); + }); } grunt.registerTask( "testswarm", function( commit, configFile ) { @@ -82,7 +85,7 @@ grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile, mino allTests[ test + "-" + version ] = tests[ test ] + "?nojshint=true&jquery=" + version; } }); - submit( commit, allTests, configFile, minor + " core", this.async() ); + submit( commit, allTests, configFile, "core " + minor, this.async() ); }); }; |