Sha256: 2a2160c137bb4083a0375caa88827af168a5583a11f61e0047b0262cd01742ea

Contents?: true

Size: 1.15 KB

Versions: 32

Compression:

Stored size: 1.15 KB

Contents

require 'rake/clean'
require 'rubygems'
require 'rubygems/package_task'
require 'rdoc/task'

def cucumber?
  require 'cucumber'
  require 'cucumber/rake/task'
rescue LoadError
  false
end

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

spec = eval(File.read('debify.gemspec'))

Gem::PackageTask.new(spec) do |pkg|
end

if cucumber?
  CUKE_RESULTS = 'results.html'
  CLEAN << CUKE_RESULTS

  desc 'Run features'
  Cucumber::Rake::Task.new(:features) do |t|
    opts = "features --format html -o #{CUKE_RESULTS} --format progress -x"
    opts += " --tags #{ENV['TAGS']}" if ENV['TAGS']
    t.cucumber_opts =  opts
    t.fork = false
  end

  desc 'Run features tagged as work-in-progress (@wip)'
  Cucumber::Rake::Task.new('features:wip') do |t|
    tag_opts = ' --tags ~@pending'
    tag_opts = ' --tags @wip'
    t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}"
    t.fork = false
  end

  task :cucumber => :features
  task 'cucumber:wip' => 'features:wip'
  task :wip => 'features:wip'
end

task :default => [:features]

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
conjur-debify-1.6.0 Rakefile
conjur-debify-1.5.4 Rakefile
conjur-debify-1.5.3 Rakefile
conjur-debify-1.5.2 Rakefile
conjur-debify-1.5.1 Rakefile
conjur-debify-1.5.0 Rakefile
conjur-debify-1.4.0 Rakefile
conjur-debify-1.3.1 Rakefile
conjur-debify-1.3.0 Rakefile
conjur-debify-1.2.1 Rakefile
conjur-debify-1.2.0 Rakefile
conjur-debify-1.1.0 Rakefile
conjur-debify-1.0.0 Rakefile
conjur-debify-0.11.0 Rakefile
conjur-debify-0.10.2 Rakefile
conjur-debify-0.10.1 Rakefile
conjur-debify-0.10.0 Rakefile
conjur-debify-0.9.2 Rakefile
conjur-debify-0.9.1 Rakefile
conjur-debify-0.9.0 Rakefile