Sha256: 6edf256536fe2e1d04dae91650cfb2d5a92c945db858b91d07c1efe3080196f5

Contents?: true

Size: 1.45 KB

Versions: 21

Compression:

Stored size: 1.45 KB

Contents

require 'bundler'
Bundler.setup
Bundler::GemHelper.install_tasks

require 'bueller'
Bueller::Tasks.new

task :console do
  Earth.init :all

  require 'irb'
  ARGV.clear
  IRB.start
end

require 'cucumber'
require 'cucumber/rake/task'
desc 'Run all cucumber tests'
Cucumber::Rake::Task.new(:features) do |t|
  if ENV['CUCUMBER_FORMAT']
    t.cucumber_opts = "features --format #{ENV['CUCUMBER_FORMAT']}"
  else
    t.cucumber_opts = 'features --format pretty'
  end
end

directory 'log/'
task :features => 'log/'

if RUBY_VERSION =~ /^1\.8/
  desc "Run cucumber tests with RCov"
  Cucumber::Rake::Task.new(:features_with_coverage) do |t|
    t.cucumber_opts = "features --format pretty"
    t.rcov = true
    t.rcov_opts = ['--exclude', 'features']
  end
end

require 'rspec/core/rake_task'
desc "Run all examples"
RSpec::Core::RakeTask.new(:examples) do |c|
  if ENV['RSPEC_FORMAT']
    c.rspec_opts = "-Ispec --format #{ENV['RSPEC_FORMAT']}"
  else
    c.rspec_opts = '-Ispec'
  end
end

if RUBY_VERSION =~ /^1\.8/
  desc "Run specs with RCov"
  RSpec::Core::RakeTask.new(:examples_with_coverage) do |t|
    t.rcov = true
    t.rcov_opts = ['--exclude', 'spec']
    t.rspec_opts = '-Ispec'
  end
end

task :test => [:features, :examples]
task :default => :test

require 'rake/rdoctask'
require 'earth/version'
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "earth #{Earth::VERSION}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
earth-0.11.10 Rakefile
earth-0.11.9 Rakefile
earth-0.11.8 Rakefile
earth-0.11.7 Rakefile
earth-0.11.6 Rakefile
earth-0.11.5 Rakefile
earth-0.11.4 Rakefile
earth-0.11.3 Rakefile
earth-0.11.2 Rakefile
earth-0.11.1 Rakefile
earth-0.11.0 Rakefile
earth-0.7.0 Rakefile
earth-0.6.6 Rakefile
earth-0.6.5 Rakefile
earth-0.6.4 Rakefile
earth-0.6.3 Rakefile
earth-0.6.2 Rakefile
earth-0.6.1 Rakefile
earth-0.6.0 Rakefile
earth-0.5.4 Rakefile