Implement a property to allow for splitting tests. (#35473)
This commit is contained in:
parent
17780ce07e
commit
328448e8cd
19
build.gradle
19
build.gradle
|
@ -25,6 +25,9 @@ import org.elasticsearch.gradle.VersionCollection
|
||||||
import org.elasticsearch.gradle.VersionProperties
|
import org.elasticsearch.gradle.VersionProperties
|
||||||
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
|
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
|
||||||
import org.gradle.plugins.ide.eclipse.model.SourceFolder
|
import org.gradle.plugins.ide.eclipse.model.SourceFolder
|
||||||
|
import com.carrotsearch.gradle.junit4.RandomizedTestingTask
|
||||||
|
|
||||||
|
import java.util.function.Predicate
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.gradle.build-scan' version '1.13.2'
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue