]> source.dussan.org Git - jquery-ui.git/commitdiff
Gruntfile: Remove project prefix from TestSwarm job name
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 2 Oct 2013 13:33:03 +0000 (15:33 +0200)
committerScott González <scott.gonzalez@gmail.com>
Tue, 26 Nov 2013 20:09:20 +0000 (15:09 -0500)
* Also added a line break to separate the for statement
  from the testswarm chain.
* Passing explicit false instead of empty string as `extra`.
(cherry picked from commit 647b839c526d81017db341a1829677fc0e5a27d5)

build/tasks/testswarm.js

index a7a6e0f8c11c23ef0e9b7478ed942f784b89805d..1dc2a2d133cb641774bd7b3c484f4c37de67604b 100644 (file)
@@ -41,12 +41,13 @@ function submit( commit, runs, configFile, extra, done ) {
                commitUrl = "https://github.com/jquery/jquery-ui/commit/" + commit;
 
        if ( extra ) {
-               extra = " " + extra;
+               extra = " (" + extra + ")";
        }
 
        for ( testName in runs ) {
                runs[ testName ] = config.testUrl + commit + "/tests/unit/" + runs[ testName ];
        }
+
        testswarm.createClient({
                url: config.swarmUrl,
                pollInterval: 10000,
@@ -58,7 +59,7 @@ function submit( commit, runs, configFile, extra, done ) {
                token: config.authToken
        })
        .addjob({
-               name: "jQuery UI #<a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
+               name: "Commit <a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
                runs: runs,
                runMax: config.runMax,
                browserSets: config.browserSets
@@ -76,7 +77,7 @@ grunt.registerTask( "testswarm", function( commit, configFile ) {
        for ( test in tests ) {
                latestTests[ test ] = tests[ test ] + "?nojshint=true";
        }
-       submit( commit, latestTests, configFile, "", this.async() );
+       submit( commit, latestTests, configFile, false, this.async() );
 });
 
 grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile, minor ) {