Sha256: 2d8071d54cbb501a09081a3896175281716ecd2e6789d4e33c51a55565b84c7f

Contents?: true

Size: 836 Bytes

Versions: 2

Compression:

Stored size: 836 Bytes

Contents

require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'gem_publisher'

task :default => [:features]

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

Cucumber::Rake::Task.new(:features) do |t|
  t.cucumber_opts = "--format pretty --no-source"
  t.fork = false
end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vcloud-net_launcher-0.1.0 Rakefile
vcloud-net_launcher-0.0.3 Rakefile