Permalink
Browse files

renamed rake blast to rake autotests

  • Loading branch information...
1 parent f13bd82 commit b4ac677c807f2615a2b8461f4175415487081428 @jedi4ever committed Apr 18, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 Rakefile
View
@@ -64,20 +64,23 @@ task :iso, [:box_name] do |t,args|
end
end
-desc 'Run through all templates and build'
-task :blast do
+desc 'Autobuilds all templates and runs validation'
+task :autotest do
ve=Veewee::Environment.new()
ve.templates.each do |name,template|
begin
ve.definitions.define("auto",name, { 'force' => true})
vd=ve.definitions["auto"]
box=ve.providers["virtualbox"].get_box("auto")
- box.build({"auto" => true,"force" => true })
+ puts "AUTO: Building #{name}"
+ box.build({"auto" => true,"force" => true, 'nogui' => true })
+ puts "AUTO: Validating #{name}"
box.validate_vagrant
+ puts "AUTO: Success #{name}"
box.destroy
rescue Exception => ex
- puts "Template #{name} failed - #{ex}"
+ puts "AUTO: Template #{name} failed - #{ex}"
end
end
end

0 comments on commit b4ac677

Please sign in to comment.