aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-04-28 14:03:13 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-04-28 14:03:13 +0200
commit2017889b3cd5e56a9dd847fbf6a7ce294f4f69ac (patch)
tree724c991124360b5e63a641f362b2f56847485366 /grunt.js
parent2b1b0374c4385b22c323b6d86d310438a5daa1b3 (diff)
downloadjquery-ui-2017889b3cd5e56a9dd847fbf6a7ce294f4f69ac.tar.gz
jquery-ui-2017889b3cd5e56a9dd847fbf6a7ce294f4f69ac.zip
Grunt: Experimental testswarm integration
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js18
1 files changed, 18 insertions, 0 deletions
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 #<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" ) );