Sha256: 7a0fa5d1061aa4675ccfb3f0085acaeabfd2966a8299ac3d3398802c2c580197

Contents?: true

Size: 860 Bytes

Versions: 1

Compression:

Stored size: 860 Bytes

Contents

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

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

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'
  ENV['COVERAGE'] = 'true'
  task.pattern = FileList['spec/vcloud/**/*_spec.rb']
end

Cucumber::Rake::Task.new(:feature) 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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vcloud-core-0.0.12 Rakefile