Sha256: c98595f683af8c1a87a2d1f7ff791fb4c6f8db67c062fd94641bfd2dc5bac7cc

Contents?: true

Size: 995 Bytes

Versions: 12

Compression:

Stored size: 995 Bytes

Contents

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

task :default => [:rubocop, :spec]
task :integration => ['integration:all']

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 :publish_gem do
  gem = GemPublisher.publish_if_updated("vcloud-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

12 entries across 12 versions & 1 rubygems

Version Path
vcloud-launcher-2.1.1 Rakefile
vcloud-launcher-2.1.0 Rakefile
vcloud-launcher-2.0.0 Rakefile
vcloud-launcher-1.1.0 Rakefile
vcloud-launcher-1.0.0 Rakefile
vcloud-launcher-0.7.0 Rakefile
vcloud-launcher-0.6.0 Rakefile
vcloud-launcher-0.5.0 Rakefile
vcloud-launcher-0.4.0 Rakefile
vcloud-launcher-0.3.1 Rakefile
vcloud-launcher-0.3.0 Rakefile
vcloud-launcher-0.2.0 Rakefile