Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 30 lines (24 sloc) 0.607 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
# encoding: utf-8

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

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

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

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

RSpec::Core::RakeTask.new(:spec)

Cucumber::Rake::Task.new(:cucumber) do |t|
  t.fork = true
  t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end
Something went wrong with that request. Please try again.