aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-05-07 12:06:12 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-05-07 12:06:12 +0200
commitbd84aad6cdde8cf3ce7842df1febb82fe9816647 (patch)
treeea7ec7802772ad7b38483d779e734e9419faa6fc /grunt.js
parent443ea98ba03056bc9c5f23c94b49ac5200888be8 (diff)
downloadjquery-bd84aad6cdde8cf3ce7842df1febb82fe9816647.tar.gz
jquery-bd84aad6cdde8cf3ce7842df1febb82fe9816647.zip
Grunt: Add testswarm task
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/grunt.js b/grunt.js
index 374640804..44ecee46f 100644
--- a/grunt.js
+++ b/grunt.js
@@ -105,6 +105,28 @@ module.exports = function( grunt ) {
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
grunt.registerMultiTask( "selector", "Build src/selector.js", function() {