Skip to content

Commit

Permalink
Fix full_build to install bundler.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Nov 8, 2010
1 parent 333cc30 commit 69715e3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion FullBuildRakeFile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@
# already being installed. This must be able to run w/o bundled gems installed.

desc "Run a full build: install necessary gems with bundler, runs specs, run cukes"
task :build do
task :build => :ensure_bundler_installed do
sh "bundle install"
sh "rake"
end

task :ensure_bundler_installed do
installed = begin
require 'rubygems'
require 'bundler'
true
rescue LoadError
false
end

unless installed
sh "gem install bundler"
end
end

0 comments on commit 69715e3

Please sign in to comment.