Skip to content

Instantly share code, notes, and snippets.

@cellvia
Created September 25, 2012 05:35
Show Gist options
  • Save cellvia/3780172 to your computer and use it in GitHub Desktop.
Save cellvia/3780172 to your computer and use it in GitHub Desktop.
var http = require('http');
var cicada = require('cicada');
var ci = cicada('./gittest');
ci.on('commit', function (commit) {
console.log("commit");
/* commit.run('test').on('exit', function (code) {
var status = code === 0 ? 'PASSED' : 'FAILED';
console.log(commit.hash + ' ' + status);
});*/
});
var server = http.createServer(ci.handle);
server.listen(5255);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment