Update Vagrant boxes before running packaging test

This commit adds an execution of a Vagrant box update task before
bringing a Vagrant box up for running packaging tests.

Relates #19155
This commit is contained in:
Jason Tedor 2016-06-29 11:04:54 -04:00 committed by GitHub
parent 4f82b2de1a
commit ef89e564f4
1 changed files with 7 additions and 1 deletions

View File

@ -223,6 +223,12 @@ for (String box : availableBoxes) {
continue;
}
Task update = tasks.create("vagrant${boxTask}#update", VagrantCommandTask) {
boxName box
args 'box', 'update', box
dependsOn checkVagrantVersion
}
Task up = tasks.create("vagrant${boxTask}#up", VagrantCommandTask) {
boxName box
/* Its important that we try to reprovision the box even if it already
@ -238,7 +244,7 @@ for (String box : availableBoxes) {
args 'up', box, '--provision', '--provider', 'virtualbox'
/* It'd be possible to check if the box is already up here and output
SKIPPED but that would require running vagrant status which is slow! */
dependsOn checkVagrantVersion
dependsOn update
}
Task smoke = tasks.create("vagrant${boxTask}#smoketest", Exec) {