]> source.dussan.org Git - jquery-ui.git/commitdiff
Grunt: Experimental testswarm integration
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 28 Apr 2012 12:03:13 +0000 (14:03 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 28 Apr 2012 12:03:13 +0000 (14:03 +0200)
grunt.js
package.json

index f3a64299815be19f35aa2a02b8684a1b65b9f448..dda89caf023c9c95f9f6e502358da18178a50171 100644 (file)
--- 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 #<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit + '</a>',
+               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" ) );
index 8547888c3e262099be899c6618a7db16c9dfc51f..d06ea51d038cd697318cf9ad85b0f2e9b9f43519 100644 (file)
@@ -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": []
 }