Skip to content

Commit

Permalink
Implement a property to allow for splitting tests. (#35473)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpar-t authored Nov 20, 2018
1 parent 17780ce commit 328448e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
}
}
}




0 comments on commit 328448e

Please sign in to comment.