Skip to content

Commit

Permalink
Grunt: Add TestSwarm task
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Jun 13, 2012
1 parent 15bc5bc commit 448decd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions grunt.js
Expand Up @@ -91,6 +91,21 @@ grunt.registerTask( "max", function() {
});
});

grunt.registerTask( "testswarm", function( commit, configFile ) {
var testswarm = require( "testswarm" ),
config = grunt.file.readJSON( configFile ).jquerycolor;
config.jobName = 'jQuery Color commit #<a href="https://github.com/jquery/jquery-color/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>';
config["runNames[]"] = "jQuery color";
config["runUrls[]"] = config.testUrl + commit + "/test/index.html";
config["browserSets[]"] = ["popular"];
testswarm({
url: config.swarmUrl,
pollInterval: 10000,
timeout: 1000 * 60 * 10,
done: this.async()
}, config);
});

grunt.registerTask( "default", "lint qunit" );
grunt.registerTask( "build", "clean max min" );

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -28,7 +28,8 @@
"devDependencies": {
"grunt": "0.3.9",
"grunt-compare-size": "0.1.7",
"rimraf": "2.0.2"
"rimraf": "2.0.2",
"testswarm": "0.2.2"
},
"keywords": [ "color", "animation" ]
}

0 comments on commit 448decd

Please sign in to comment.