mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Gruntfile: Remove project prefix from TestSwarm job name
* 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 647b839c52
)
This commit is contained in:
parent
c9a161bf95
commit
5a2832bf2d
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user