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:
Alpar Torok 2019-10-24 15:14:11 +03:00
parent 30389c6660
commit d235576452
1 changed files with 2 additions and 7 deletions

View File

@ -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