Skip to content

Commit

Permalink
Clean up Rakefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Apr 11, 2012
1 parent 043d35f commit 4f016db
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Rakefile
Expand Up @@ -2,22 +2,23 @@

require 'rubygems'
require 'bundler/setup'
require 'bundler/gem_tasks'

require 'rake'
require 'rubygems/package_task'
require 'cucumber/rake/task'
require 'diesel/tasks'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'appraisal'

task :default do |t|
task :default do
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
exec 'rake spec cucumber'
else
Rake::Task['appraise'].execute
end
end

task :appraise => ['appraisal:install'] do |t|
task :appraise => ['appraisal:install'] do
exec 'rake appraisal spec cucumber'
end

Expand All @@ -27,5 +28,3 @@ Cucumber::Rake::Task.new(:cucumber) do |t|
t.fork = true
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end

Bundler::GemHelper.install_tasks

0 comments on commit 4f016db

Please sign in to comment.