Skip to content

Commit

Permalink
test: don't forward stdout on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
autonomousapps committed Jan 29, 2025
1 parent abcd840 commit e17041d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/functionalTest/kotlin/com/autonomousapps/utils/runner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,16 @@ internal fun runner(
projectDir: File,
vararg args: String
): GradleRunner = GradleRunner.create().apply {
forwardOutput()
if (!isCi()) {
// Try to limit logging on CI
forwardOutput()
}

withGradleVersion(gradleVersion.version)
withProjectDir(projectDir)
withArguments(args.toList() + "-s")
// Ensure this value is true when `--debug-jvm` is passed to Gradle, and false otherwise
withDebug(DebugAware.isDebug())
}

private fun isCi() = System.getenv("CI") == "true"

0 comments on commit e17041d

Please sign in to comment.