Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 533 Bytes
# this is in a separate rakefile because our main one depends on the bundled gems
# 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 => :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
Jump to Line
Something went wrong with that request. Please try again.