Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 691 Bytes
# typical shoulda garlic configuration
garlic do
# this plugin
repo "#{plugin}", :path => '.'
# other repos
repo "rails", :url => "git://github.com/rails/rails"
repo "shoulda", :url => "git://github.com/thoughtbot/shoulda"
# target railses
['master', '2-3-stable', '2-2-stable', '2-1-stable', '2-0-stable'].each do |rails|
# declare how to prepare, and run each CI target
target rails, :tree_ish => "origin/#{rails}" do
prepare do
plugin "#{plugin}", :clone => true # so we can work in targets
plugin "shoulda"
end
run do
cd "vendor/plugins/#{plugin}" do
sh "rake"
end
end
end
end
end