File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,24 @@ grunt.initConfig({
337
337
} ) ( )
338
338
} ) ;
339
339
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
+
340
358
grunt . registerMultiTask ( "copy" , "Copy files to destination folder and replace @VERSION with pkg.version" , function ( ) {
341
359
function replaceVersion ( source ) {
342
360
return source . replace ( / @ V E R S I O N / g, grunt . config ( "pkg.version" ) ) ;
Original file line number Diff line number Diff line change 31
31
"grunt-compare-size" : " 0.1.4" ,
32
32
"grunt-html" : " 0.1.1" ,
33
33
"request" : " 2.9.153" ,
34
- "rimraf" : " 2.0.1"
34
+ "rimraf" : " 2.0.1" ,
35
+ "testswarm" : " latest"
35
36
},
36
37
"keywords" : []
37
38
}
You can’t perform that action at this time.
0 commit comments