Commit bd84aad6 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Grunt: Add testswarm task

parent 443ea98b
...@@ -105,6 +105,28 @@ module.exports = function( grunt ) { ...@@ -105,6 +105,28 @@ module.exports = function( grunt ) {
grunt.loadNpmTasks("grunt-compare-size"); grunt.loadNpmTasks("grunt-compare-size");
grunt.registerTask( "testswarm", function( commit, configFile ) {
var testswarm = require( "testswarm" ),
testUrls = [];
var tests = "ajax attributes callbacks core css data deferred dimensions effects event manipulation offset queue selector support traversing".split( " " );
tests.forEach(function( test ) {
testUrls.push( "http://swarm.jquery.org/git/jquery/" + commit + "/test/index.html?filter=" + test );
});
testswarm({
url: "http://swarm.jquery.org/",
pollInterval: 10000,
done: this.async()
}, {
authUsername: "jqueryui",
authToken: grunt.file.readJSON( configFile ).jquery.authToken,
jobName: 'jQuery commit #<a href="https://github.com/jquery/jquery/commit/' + commit + '">' + commit + '</a>',
runMax: 4,
"runNames[]": tests,
"runUrls[]": testUrls,
"browserSets[]": ["popular"]
});
});
// Build src/selector.js // Build src/selector.js
grunt.registerMultiTask( "selector", "Build src/selector.js", function() { grunt.registerMultiTask( "selector", "Build src/selector.js", function() {
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"grunt-compare-size": ">=0.1.0", "grunt-compare-size": ">=0.1.0",
"grunt": ">=0.3.9" "grunt": ">=0.3.9",
"testswarm": "0.2.2"
}, },
"keywords": [] "keywords": []
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment