Sha256: f9923f61cdc7b7765df5a21c889cf68ba0b7c16cb725506c0b6e10dd6fbbe7a0

Contents?: true

Size: 1.62 KB

Versions: 8

Compression:

Stored size: 1.62 KB

Contents

def dump_load_path
  puts $LOAD_PATH.join("\n")
  found = nil
  $LOAD_PATH.each do |path|
    if File.exists?(File.join(path,"rspec"))
      puts "Found rspec in #{path}"
      if File.exists?(File.join(path,"rspec","core"))
        puts "Found core"
        if File.exists?(File.join(path,"rspec","core","rake_task"))
          puts "Found rake_task"
          found = path
        else
          puts "!! no rake_task"
        end
      else
        puts "!!! no core"
      end
    end
  end
  if found.nil?
    puts "Didn't find rspec/core/rake_task anywhere"
  else
    puts "Found in #{path}"
  end
end
require 'bundler'
require 'rake/clean'

begin
require 'rspec/core/rake_task'
rescue LoadError
dump_load_path
raise
end

require 'cucumber'
require 'cucumber/rake/task'
gem 'rdoc' # we need the installed RDoc gem, not the system one
require 'rdoc/task'

include Rake::DSL

Bundler::GemHelper.install_tasks


RSpec::Core::RakeTask.new do |t|
  # Put spec opts in a file named .rspec in root
end


CUKE_RESULTS = 'results.html'
CLEAN << CUKE_RESULTS
namespace(:features) do
  Cucumber::Rake::Task.new(:new_qemu) do |t|
    t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
    t.fork = false
    t.profile = 'new-qemu-image'
  end
  Cucumber::Rake::Task.new(:old_qemu) do |t|
    t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
    t.fork = false
    t.profile = 'old-qemu-image'
  end
end

Rake::RDocTask.new do |rd|
  
  rd.main = "README.rdoc"
  
  rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
end

task :default => [:spec,"features:new_qemu"]

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uricp-0.0.14 Rakefile
uricp-0.0.13 Rakefile
uricp-0.0.12 Rakefile
uricp-0.0.11 Rakefile
uricp-0.0.10 Rakefile
uricp-0.0.9 Rakefile
uricp-0.0.8 Rakefile
uricp-0.0.7 Rakefile