From 8bde7285bffafe889dec9b8903cdb317f3bc6abf Mon Sep 17 00:00:00 2001 From: mmuller Date: Thu, 10 Jan 2019 10:58:11 -0800 Subject: [PATCH] Fix travis build with test isolation Since we seem to be experiencing weird interference between tests on Travis, run every test in its own JVM until we find a better solution. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228738848 --- gradle/core/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gradle/core/build.gradle b/gradle/core/build.gradle index f90b4153f..61a13daff 100644 --- a/gradle/core/build.gradle +++ b/gradle/core/build.gradle @@ -453,6 +453,11 @@ test { exclude fragileTestPatterns exclude outcastTestPatterns + // Run every test class in its own process. + // TODO: Figure out why we need to do this, fix it and then stop doing it. + // This setting makes the build take 35 minutes, without it it takes about 10. + forkEvery 1 + // Sets the maximum number of test executors that may exist at the same time. maxParallelForks 5 }.dependsOn(fragileTest, outcastTest)