Grunt: Experimental testswarm integration

This commit is contained in:
Jörn Zaefferer 2012-04-28 14:03:13 +02:00
parent 2b1b0374c4
commit 2017889b3c
2 changed files with 20 additions and 1 deletions

View File

@ -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" ) );

View 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": []
}