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,14 +62,9 @@ processTestResources {
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects { Project platformProject ->
|
subprojects { Project platformProject ->
|
||||||
|
|
||||||
// TODO: remove this property lookup once CI is switched to use an explicit task for the sample tests
|
|
||||||
boolean allBoxes = (project.findProperty('vagrant.boxes') ?: '') == 'all'
|
|
||||||
if (allBoxes || ['centos-7', 'ubuntu-1604'].contains(platformProject.name)) {
|
|
||||||
tasks.register('packagingTest') {
|
tasks.register('packagingTest') {
|
||||||
dependsOn 'distroTest', 'batsTest.oss', 'batsTest.default'
|
dependsOn 'distroTest', 'batsTest.oss', 'batsTest.default'
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
vagrant {
|
vagrant {
|
||||||
hostEnv 'VAGRANT_PROJECT_DIR', platformProject.projectDir.absolutePath
|
hostEnv 'VAGRANT_PROJECT_DIR', platformProject.projectDir.absolutePath
|
||||||
|
|
Loading…
Reference in New Issue