Sha256: ce9114d88965d638984247518615b3a25bd09b80bcd5ae1f9a6c7c4e9eb7ccf8
Contents?: true
Size: 1.26 KB
Versions: 10
Compression:
Stored size: 1.26 KB
Contents
# 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. def rake(command = "") sh "rake #{command} FULL_BUILD=true" end desc "Run a full build: install necessary gems with bundler, runs specs, run cukes" task :build => :bundle_install do rake end desc "Install necessary gems with bundler and runs specs" task :spec => :bundle_install do rake "spec" end desc "Install necessary gems with bundler and runs cukes" task :cucumber => :bundle_install do rake "cucumber" end desc "Prints description of current ruby interpreter" task :print_ruby_description do description = if defined?(RUBY_DESCRIPTION) RUBY_DESCRIPTION else # RUBY_DESCRIPTION is undefined on 1.8.6 "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE} patchlevel #{RUBY_PATCHLEVEL}) [#{RUBY_PLATFORM}]" end puts puts "=" * 80 puts "Using #{description}" puts "=" * 80 puts end task :bundle_install => :ensure_bundler_installed do sh "bundle install" end task :ensure_bundler_installed => :print_ruby_description do installed = begin require 'rubygems' require 'bundler' true rescue LoadError false end unless installed sh "gem install bundler" end end
Version data entries
10 entries across 10 versions & 1 rubygems