Add stop task for vagrant which wraps all halt tasks, instead of using clean
This commit is contained in:
parent
6e44ddaf0e
commit
19567fb794
|
@ -90,6 +90,11 @@ task clean(type: Delete) {
|
|||
delete buildDir
|
||||
}
|
||||
|
||||
task stop {
|
||||
group 'Verification'
|
||||
description 'Stop any tasks from tests that still may be running'
|
||||
}
|
||||
|
||||
File testRoot = new File("$buildDir/testroot")
|
||||
task createTestRoot {
|
||||
outputs.dir testRoot
|
||||
|
@ -153,7 +158,7 @@ for (String box : availableBoxes) {
|
|||
boxName box
|
||||
commandLine 'halt', box
|
||||
}
|
||||
clean.dependsOn(halt)
|
||||
stop.dependsOn(halt)
|
||||
if (boxes.contains(box) == false) {
|
||||
// we only need a halt task if this box was not specified
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue