File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 55 docker :
66 - image : circleci/android:api-26-alpha
77 environment :
8- JVM_OPTS : -Xmx1024m -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:ParallelGCThreads=2 -Djava.util.concurrent.ForkJoinPool.common.parallelism=2
8+ JVM_OPTS : -Xms512m -Xmx1024m -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:ParallelGCThreads=2 -Djava.util.concurrent.ForkJoinPool.common.parallelism=2
9+ GRADLE_OPTS : -Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"
10+
911
1012 steps :
1113 - checkout
Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ android {
1919 }
2020 }
2121 testOptions {
22+ unitTests. all {
23+ maxParallelForks = 2
24+
25+ // set heap size for the test JVM(s)
26+ minHeapSize = " 128m"
27+ maxHeapSize = " 512m"
28+
29+ beforeTest { descriptor ->
30+ logger. lifecycle(" Running test: " + descriptor)
31+ }
32+
33+
34+ }
2235 unitTests {
2336 includeAndroidResources = true
2437 }
@@ -59,4 +72,4 @@ configurations {
5972}
6073artifacts {
6174 unitTestArtifact jarTests
62- }
75+ }
You can’t perform that action at this time.
0 commit comments