Created
July 11, 2010 17:51
-
-
Save garethr/471712 to your computer and use it in GitHub Desktop.
post-receive git hook for integrity continuous integration server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'net/http' | |
# This is a post-receive git hook designed to tirgger a build in the | |
# Integrity continuous integration server | |
INTEGRITY = 'http://localhost:9292' | |
PROJECT = 'site' | |
uri = URI.parse("#{INTEGRITY}/#{PROJECT}/builds") | |
post_req = Net::HTTP::Post.new(uri.path) | |
post_req.set_form_data({}, ';') | |
req = Net::HTTP.new(uri.host, uri.port) | |
req.start {|http| http.request(post_req)} | |
puts "Running Integrity build" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment