Skip to content

Commit 2017889

Browse files
committed
Grunt: Experimental testswarm integration
1 parent 2b1b037 commit 2017889

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

grunt.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,24 @@ grunt.initConfig({
337337
})()
338338
});
339339

340+
grunt.registerTask( "testswarm", function( commit, authToken ) {
341+
var testswarm = require( "testswarm" );
342+
var testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/";
343+
require( "testswarm" )( {
344+
url: "http://swarm.jquery.org/api.php?",
345+
pollInterval: 2000,
346+
done: this.async()
347+
}, {
348+
authUsername: "jqueryui",
349+
authToken: authToken,
350+
jobName: 'jQuery UI commit #<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit + '</a>',
351+
runMax: 1,
352+
"runNames[]": ["Accordion", "Autocomplete"],
353+
"runUrls[]": [ testBase + "tests/unit/accordion/accordion.html", testBase + "tests/unit/autocomplete/autocomplete.html" ],
354+
browserSets: "popular"
355+
});
356+
});
357+
340358
grunt.registerMultiTask( "copy", "Copy files to destination folder and replace @VERSION with pkg.version", function() {
341359
function replaceVersion( source ) {
342360
return source.replace( /@VERSION/g, grunt.config( "pkg.version" ) );

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"grunt-compare-size": "0.1.4",
3232
"grunt-html": "0.1.1",
3333
"request": "2.9.153",
34-
"rimraf": "2.0.1"
34+
"rimraf": "2.0.1",
35+
"testswarm": "latest"
3536
},
3637
"keywords": []
3738
}

0 commit comments

Comments
 (0)