Rakefile in vcloud-launcher-0.0.3 vs Rakefile in vcloud-launcher-0.0.4
- old
+ new
@@ -1,47 +1,33 @@
-require 'rake/clean'
-require 'rake/testtask'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
+require 'gem_publisher'
-require 'vcloud/launcher/version'
+task :default => [:spec,:features]
+task :integration => ['integration:all']
-include Rake::DSL
-
-Bundler::GemHelper.install_tasks
-
-Rake::TestTask.new do |t|
- t.pattern = 'test/tc_*.rb'
-end
-
-CUKE_RESULTS = 'results.html'
-CLEAN << CUKE_RESULTS
-
-Cucumber::Rake::Task.new(:features) do |t|
- t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
- t.fork = false
-end
-
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: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 :default => [:spec,:features]
-
-require "gem_publisher"
task :publish_gem do |t|
gem = GemPublisher.publish_if_updated("vcloud-launcher.gemspec", :rubygems)
puts "Published #{gem}" if gem
end