Sha256: c99c94f895b3ad84cf203a540a81344f0fba31b76e6bc4ea55cd92737a5ba26c

Contents?: true

Size: 798 Bytes

Versions: 1

Compression:

Stored size: 798 Bytes

Contents

require 'rspec/core/rake_task'
require 'gem_publisher'

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

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) do |t|
  t.pattern = FileList['spec/integration/**/*_spec.rb']
end

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

require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |task|
  task.options = ['--lint']
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vcloud-disk_launcher-0.1.0 Rakefile