Skip to content

Instantly share code, notes, and snippets.

@jakehow
Created March 31, 2009 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakehow/88432 to your computer and use it in GitHub Desktop.
Save jakehow/88432 to your computer and use it in GitHub Desktop.
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