Skip to content

Commit

Permalink
renamed rake blast to rake autotests
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi4ever committed Apr 18, 2012
1 parent f13bd82 commit b4ac677
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Rakefile
Expand Up @@ -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.