Skip to content

Commit e98da6e

Browse files
committed
If there's 2 failures or less, then we're willing to do a retry.
1 parent 3255ae4 commit e98da6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gradle/special-tests.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ def special = [
66
'Clang'
77
]
88

9-
boolean isCiServer = true
9+
boolean isCiServer = System.getenv().containsKey("CI")
1010
tasks.named('test') {
1111
// See com.diffplug.spotless.tag package for available JUnit 5 @Tag annotations
1212
useJUnitPlatform {
1313
excludeTags special as String[]
1414
}
1515
if (isCiServer) {
1616
retry {
17-
maxRetries = 2
17+
maxRetries = 1
1818
maxFailures = 2
1919
}
2020
}

0 commit comments

Comments
 (0)