Deactivate some gradle doctor checks on the CI.

This commit is contained in:
Benoit Marty 2022-09-27 12:21:02 +02:00
parent 974ac49594
commit 67d899dce4
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
// Default configuration copied from https://runningcode.github.io/gradle-doctor/configuration/ // Default configuration copied from https://runningcode.github.io/gradle-doctor/configuration/
def isCiBuild = System.env.BUILDKITE == "true" || System.env.GITHUB_ACTIONS == "true"
println "Is CI build: $isCiBuild"
doctor { doctor {
/** /**
* Throw an exception when multiple Gradle Daemons are running. * Throw an exception when multiple Gradle Daemons are running.
@ -50,7 +54,7 @@ doctor {
/** /**
* Warn when not using parallel GC. Parallel GC is faster for build type tasks and is no longer the default in Java 9+. * Warn when not using parallel GC. Parallel GC is faster for build type tasks and is no longer the default in Java 9+.
*/ */
warnWhenNotUsingParallelGC = true warnWhenNotUsingParallelGC = !isCiBuild
/** /**
* Throws an error when the `Delete` or `clean` task has dependencies. * Throws an error when the `Delete` or `clean` task has dependencies.
* If a clean task depends on other tasks, clean can be reordered and made to run after the tasks that would produce * If a clean task depends on other tasks, clean can be reordered and made to run after the tasks that would produce
@ -78,7 +82,7 @@ doctor {
/** /**
* Fail on any `JAVA_HOME` issues. * Fail on any `JAVA_HOME` issues.
*/ */
failOnError.set(true) failOnError.set(!isCiBuild)
/** /**
* Extra message text, if any, to show with the Gradle Doctor message. This is useful if you have a wiki page or * Extra message text, if any, to show with the Gradle Doctor message. This is useful if you have a wiki page or
* other instructions that you want to link for developers on your team if they encounter an issue. * other instructions that you want to link for developers on your team if they encounter an issue.