Skip to content

Commit

Permalink
Enable Predictive Test Selection for local builds (#5170)
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex committed Aug 2, 2022
1 parent b1973a5 commit d42e6f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle.kts
Expand Up @@ -44,6 +44,14 @@ allprojects {
}
}

subprojects {
tasks.withType<Test> {
predictiveSelection {
enabled.set(System.getenv("CI") == null)
}
}
}

val analysisDir = file(projectDir)
val baselineFile = file("$rootDir/config/detekt/baseline.xml")
val configFile = file("$rootDir/config/detekt/detekt.yml")
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Expand Up @@ -44,6 +44,7 @@ plugins {
// check https://gradle.com/enterprise/releases with new versions. GE plugin version should not lag behind Gradle version
id("com.gradle.enterprise") version "3.10.3"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.7.2"
id("com.gradle.enterprise.test-distribution") version "2.3.5"
}

val isCiBuild = System.getenv("CI") != null
Expand Down

0 comments on commit d42e6f0

Please sign in to comment.