Add a packagingTask for every os project (#48400)
We no longer run the sample tests in CI, so it's safe to create a task for every project. This will make it easier to set them up in a matrix like fashion.
This commit is contained in:
parent
30389c6660
commit
d235576452
|
@ -62,13 +62,8 @@ processTestResources {
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects { Project platformProject ->
|
subprojects { Project platformProject ->
|
||||||
|
tasks.register('packagingTest') {
|
||||||
// TODO: remove this property lookup once CI is switched to use an explicit task for the sample tests
|
dependsOn 'distroTest', 'batsTest.oss', 'batsTest.default'
|
||||||
boolean allBoxes = (project.findProperty('vagrant.boxes') ?: '') == 'all'
|
|
||||||
if (allBoxes || ['centos-7', 'ubuntu-1604'].contains(platformProject.name)) {
|
|
||||||
tasks.register('packagingTest') {
|
|
||||||
dependsOn 'distroTest', 'batsTest.oss', 'batsTest.default'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vagrant {
|
vagrant {
|
||||||
|
|
Loading…
Reference in New Issue