Skip to content

Commit

Permalink
Add --no-daemon arg for android gradle test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
rougsig committed Jun 26, 2022
1 parent 529299d commit 7ed658c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ final class ProtobufPluginTestHelper {
//
// Set memory limit for all gradle build, not only for dexing
args.add("-Porg.gradle.jvmargs=-Xmx2048m")
// Disable daemon to safe memory
// Each gradle version run daemon, which use a bit of ram.
// After running 4 different versions of Gradle ram will run out.
args.add("--no-daemon")
return GradleRunner.create()
.withProjectDir(mainProjectDir)
.withArguments(args)
Expand Down

0 comments on commit 7ed658c

Please sign in to comment.