Implement a property to allow for splitting tests. (#35473)

This commit is contained in:
Alpar Torok 2018-11-20 20:35:53 +02:00 committed by GitHub
parent 17780ce07e
commit 328448e8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -25,6 +25,9 @@ import org.elasticsearch.gradle.VersionCollection
import org.elasticsearch.gradle.VersionProperties
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
import org.gradle.plugins.ide.eclipse.model.SourceFolder
import com.carrotsearch.gradle.junit4.RandomizedTestingTask
import java.util.function.Predicate
plugins {
id 'com.gradle.build-scan' version '1.13.2'
@ -622,3 +625,19 @@ allprojects {
}
}
}
allprojects {
task checkPart1
task checkPart2
tasks.matching { it.name == "check" }.all { check ->
if (check.path.startsWith(":x-pack:")) {
checkPart2.dependsOn check
} else {
checkPart1.dependsOn check
}
}
}