albanpeignier / cruisecontrolrb-campfire_notifier

Campfire notificier for CruiseControl.rb

This URL has Read+Write access

name age message
file .gitignore Sat Dec 26 02:33:20 -0800 2009 Add rcov task [albanpeignier]
file README.rdoc Sat Dec 26 11:02:05 -0800 2009 add info about rcov and test coverage to README [armmer]
file Rakefile.rb Sat Dec 26 02:33:20 -0800 2009 Add rcov task [albanpeignier]
file campfire_notifier.rb Tue Jan 05 05:55:21 -0800 2010 add code to handle authentication error and rai... [armmer]
directory test/ Tue Jan 05 05:55:21 -0800 2010 add code to handle authentication error and rai... [armmer]
README.rdoc

CampFire Notifier

Make status available on Campfire…

Install

  gem install broach

On debian system, broach requires:

  sudo apt-get install ruby-dev libopenssl-ruby

Where you set your $CRUISE_HOME to be, usually ~/.cruise, there will be a builder_plugins folder. I have it setup to where I clone this plugin to my $CRUISE_HOME folder and create a symlink from inside the builder_plugins folder into the cruisecontrolrb-campfire-notifier folder.

  ~/.cruise
    builder_plugins/
      campfire_notifier.rb -> ~/.cruise/cruisecontrolrb-campfire_notifier/campfire_notifier.rb
    cruisecontrolrb-campfire_notifier/
      README.rdoc
      campfire_notifier.rb
    data.version
    projects/
    site.css
    site_config.rb

Configuration

Inside your projects folder, you’ll have each project folder, and inside there you’ll have a cruise_config.rb file:

  Project.configure do |project|

    project.campfire_notifier.account               = 'ccontrol'
    project.campfire_notifier.token                 = 'secret'
    project.campfire_notifier.room                  = 'Builds'

    # Optional:
    project.campfire_notifier.ssl                   = true
    project.campfire_notifier.trac_url              = '***/trac/***/changeset'
    project.campfire_notifier.broken_image          = 'http://***/sad.png'
    project.campfire_notifier.fixed_image           = 'http://***/happy.png'
    project.campfire_notifier.only_failed_builds    = true

  end

Tests

  gem install mocha
  gem install shoulda
  rake

Test Coverage

  gem install rcov
  rake rcov

The Rakefile will check for all 3 required gems (broach, mocha, and shoulda) before running the tests.