Created
March 31, 2009 21:49
-
-
Save jakehow/88432 to your computer and use it in GitHub Desktop.
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
ENV["RAILS_ENV"] = "test" | |
require 'rubygems' | |
require 'integrity' | |
require 'notifier/campfire' | |
Integrity::Notifier.register(Integrity::Notifier::Campfire) | |
Integrity.new(File.dirname(__FILE__) + "/config.yml") | |
project = Integrity::Project.first(:permalink => 'projectname') | |
last_commit = project.commits.last | |
build = last_commit ? project.send(:head_of_remote_repo) != last_commit.identifier : false | |
project.build if build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment