diff --git a/grunt.js b/grunt.js index f3a642998..dda89caf0 100644 --- a/grunt.js +++ b/grunt.js @@ -337,6 +337,24 @@ grunt.initConfig({ })() }); +grunt.registerTask( "testswarm", function( commit, authToken ) { + var testswarm = require( "testswarm" ); + var testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/"; + require( "testswarm" )( { + url: "http://swarm.jquery.org/api.php?", + pollInterval: 2000, + done: this.async() + }, { + authUsername: "jqueryui", + authToken: authToken, + jobName: 'jQuery UI commit #' + commit + '', + runMax: 1, + "runNames[]": ["Accordion", "Autocomplete"], + "runUrls[]": [ testBase + "tests/unit/accordion/accordion.html", testBase + "tests/unit/autocomplete/autocomplete.html" ], + browserSets: "popular" + }); +}); + grunt.registerMultiTask( "copy", "Copy files to destination folder and replace @VERSION with pkg.version", function() { function replaceVersion( source ) { return source.replace( /@VERSION/g, grunt.config( "pkg.version" ) ); diff --git a/package.json b/package.json index 8547888c3..d06ea51d0 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "grunt-compare-size": "0.1.4", "grunt-html": "0.1.1", "request": "2.9.153", - "rimraf": "2.0.1" + "rimraf": "2.0.1", + "testswarm": "latest" }, "keywords": [] }