public
Description: BrainBuster - a logic captcha for Rails
Homepage: http://opensource.thinkrelevance.com/wiki/BrainBuster
Clone URL: git://github.com/rsanheim/brain_buster.git
brain_buster / garlic.rb
100644 27 lines (21 sloc) 0.63 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# typical vanilla garlic configuration
 
garlic do
  # this plugin
  repo "brain_buster", :path => '.'
  
  # other repos
  repo "rails", :url => "git://github.com/rails/rails"
  
  # target railses
  ['origin/master', 'origin/2-2-stable', 'origin/2-1-stable', 'origin/2-0-stable'].each do |rails|
    
    # declare how to prepare, and run each CI target
    target "Rails: #{rails}", :tree_ish => rails do
      prepare do
        plugin "brain_buster", :clone => true # so we can work in targets
      end
    
      run do
        cd "vendor/plugins/brain_buster" do
          sh "rake"
        end
      end
    end
  end
end