forked from gds-operations/vcloud-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
27 lines (22 loc) · 816 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'rspec/core/rake_task'
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'
ENV['COVERAGE'] = 'true'
task.pattern = FileList['spec/vcloud/**/*_spec.rb']
end
RSpec::Core::RakeTask.new('integration') do |t|
t.pattern = FileList['spec/integration/**/*_spec.rb']
end
require "gem_publisher"
task :publish_gem do
gem = GemPublisher.publish_if_updated("vcloud-core.gemspec", :rubygems)
puts "Published #{gem}" if gem
end
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |task|
task.options = ['--lint']
end