mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Grunt: Experimental testswarm integration
This commit is contained in:
parent
2b1b0374c4
commit
2017889b3c
18
grunt.js
18
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" ) );
|
||||
|
@ -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": []
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user