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
This commit is contained in:
mmuller 2019-01-10 10:58:11 -08:00 committed by Ben McIlwain
parent f94090c415
commit 8bde7285bf

View file

@ -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)