Sha256: 21da1edf21b022ae28cc9f256f8c919e00e2e652ec65e1edc6cce449999a7213

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

require 'rake/clean'
require 'rake/testtask'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'

require 'vcloud/launcher/version'

include Rake::DSL

Bundler::GemHelper.install_tasks

Rake::TestTask.new do |t|
  t.pattern = 'test/tc_*.rb'
end

CUKE_RESULTS = 'results.html'
CLEAN << CUKE_RESULTS

Cucumber::Rake::Task.new(:features) do |t|
  t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
  t.fork = false
end

RSpec::Core::RakeTask.new(:spec) do |task|
  # Set a bogus Fog credential, otherwise it's possible for the unit
  # tests to accidentially run (and succeed against!) an actual 
  # environment, if Fog connection is not stubbed correctly.
  ENV['FOG_CREDENTIAL'] = 'random_nonsense_owiejfoweijf'
  task.pattern = FileList['spec/vcloud/**/*_spec.rb']
end

RSpec::Core::RakeTask.new('integration:quick') do |t|
  t.rspec_opts = %w(--tag ~take_too_long)
  t.pattern = FileList['spec/integration/**/*_spec.rb']
end

RSpec::Core::RakeTask.new('integration:all') do |t|
  t.pattern = FileList['spec/integration/**/*_spec.rb']
end

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

require "gem_publisher"
task :publish_gem do |t|
  gem = GemPublisher.publish_if_updated("vcloud-launcher.gemspec", :rubygems)
  puts "Published #{gem}" if gem
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vcloud-launcher-0.0.3 Rakefile
vcloud-launcher-0.0.2 Rakefile
vcloud-launcher-0.0.1 Rakefile