Skip to content
Permalink
Browse files

Grunt: Experimental testswarm integration

  • Loading branch information...
jzaefferer committed Apr 28, 2012
1 parent 2b1b037 commit 2017889b3cd5e56a9dd847fbf6a7ce294f4f69ac
Showing with 20 additions and 1 deletion.
  1. +18 −0 grunt.js
  2. +2 −1 package.json
@@ -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" ) );
@@ -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": []
}

0 comments on commit 2017889

Please sign in to comment.
You can’t perform that action at this time.