Find CCR QA sub-projects automatically (#33027)

Today we are by-hand maintaining a list of CCR QA sub-projects that the
check task depends on. This commit simplifies this by finding these
sub-projects automatically and adding their check task as dependencies
of the CCR check task.
This commit is contained in:
Jason Tedor 2018-08-21 12:51:55 -04:00 committed by GitHub
parent b08d02e3b7
commit 9623cf6cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 5 deletions

View File

@ -32,12 +32,17 @@ task internalClusterTest(type: RandomizedTestingTask,
systemProperty 'es.set.netty.runtime.available.processors', 'false'
}
check.dependsOn internalClusterTest
internalClusterTest.mustRunAfter test
check.dependsOn(
internalClusterTest,
'qa:multi-cluster:followClusterTest',
'qa:multi-cluster-with-incompatible-license:followClusterTest',
'qa:multi-cluster-with-security:followClusterTest')
// add all sub-projects of the qa sub-project
gradle.projectsEvaluated {
project.subprojects
.find { it.path == project.path + ":qa" }
.subprojects
.findAll { it.path.startsWith(project.path + ":qa") }
.each { check.dependsOn it.check }
}
dependencies {
compileOnly "org.elasticsearch:elasticsearch:${version}"