Sha256: 5ecc9a38985149eb1460f4882d90346c6a8bcc17c1e1f3d0bffd35caf7cb7e10
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
require 'chicanery/cctray' require 'chicanery/git' include Chicanery::Git include Chicanery::Cctray git 'chicanery', '.', branches: [:master], remotes: { github: { url: 'git://github.com/markryall/chicanery.git' } } cctray 'travis', 'https://api.travis-ci.org/repositories/markryall/chicanery/cc.xml' poll_period 10 def growlnotify message `growlnotify -t "some new chicanery ..." --image ~/icons/chicanery.png -m \"#{message}\"` end when_run do |state| puts state.has_failure? ? "something is wrong" : "all builds are fine" end when_commit do |repo, commit, previous| growlnotify "commit #{previous}..#{commit} detected in repo #{repo}" end when_started do |job_name, job| growlnotify "job #{job_name} has started" `afplay ~/build_sounds/ticktock.mp3` end when_succeeded do |job_name, job| growlnotify "job #{job_name} #{job[:last_label]} has succeeded" end when_failed do |job_name, job| growlnotify "job #{job_name} #{job[:last_label]} has failed" end when_broken do |job_name, job| growlnotify "job #{job_name} is broken" `afplay ~/build_sounds/ambulance.mp3` end when_fixed do |job_name, job| growlnotify "job #{job_name} is fixed" `afplay ~/build_sounds/applause.mp3` end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chicanery-0.1.0 | examples/chicanery.rb |
chicanery-0.0.9 | examples/chicanery.rb |
chicanery-0.0.8 | examples/chicanery.rb |