Rakefile in uricp-0.0.14 vs Rakefile in uricp-0.0.15
- old
+ new
@@ -59,9 +59,21 @@
Cucumber::Rake::Task.new(:old_qemu) do |t|
t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
t.fork = false
t.profile = 'old-qemu-image'
end
+
+ task(:clean) do
+ if ENV['ORBIT_USER'] && ENV['ORBIT_KEY']
+ %w{temp_dlo test_upload}.each do |test_file|
+ sh "swift --quiet --insecure -A #{ENV['ORBIT_URL'] || "https://orbit.gb1.brightbox.com/v1"} -U #{ENV['ORBIT_USER']} -K #{ENV['ORBIT_KEY']} delete #{test_file}" do |ok, res|
+ if !ok
+ puts "Delete failed: #{res.exitstatus}"
+ end
+ end
+ end
+ end
+ end
end
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"