Skip to content

Commit

Permalink
Enable fail fast behavior when building in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Ross <[email protected]>
  • Loading branch information
andrross committed Aug 30, 2024
1 parent 1c28aff commit 21f53ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ tasks.register("branchConsistency") {
}

allprojects {
tasks.withType(Test).configureEach { Test test ->
failFast = true
}

// configure compiler options
tasks.withType(JavaCompile).configureEach { JavaCompile compile ->
options.fork = true
Expand Down Expand Up @@ -473,6 +469,9 @@ gradle.projectsEvaluated {
// test retry configuration
subprojects {
tasks.withType(Test).configureEach {
// If running in CI then bail out after first failure
failFast = BuildParams.isCi()

develocity.testRetry {
if (BuildParams.isCi()) {
maxRetries = 3
Expand Down

0 comments on commit 21f53ac

Please sign in to comment.