diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-04-28 14:03:13 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-04-28 14:03:13 +0200 |
commit | 2017889b3cd5e56a9dd847fbf6a7ce294f4f69ac (patch) | |
tree | 724c991124360b5e63a641f362b2f56847485366 /grunt.js | |
parent | 2b1b0374c4385b22c323b6d86d310438a5daa1b3 (diff) | |
download | jquery-ui-2017889b3cd5e56a9dd847fbf6a7ce294f4f69ac.tar.gz jquery-ui-2017889b3cd5e56a9dd847fbf6a7ce294f4f69ac.zip |
Grunt: Experimental testswarm integration
Diffstat (limited to 'grunt.js')
-rw-r--r-- | grunt.js | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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" ) ); |