Skip to content

Commit

Permalink
Reduce initial heap size of gradle
Browse files Browse the repository at this point in the history
Several times the Travis-CI build would fail because gradle ran
out of memory. To reduce this, have gradle use a smaller initial
heap size.
  • Loading branch information
brarcher authored Mar 10, 2017
1 parent 4a1a862 commit ff6e1d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
language: android

env:
global:
# Gradle sometimes takes too much memory, resulting in
# memory pressure that fails the build. Reduce its initial
# heap to help reduce issues.
- GRADLE_OPTS="-Xms128m"

android:
components:
# Uncomment the lines below if you want to
Expand Down

0 comments on commit ff6e1d4

Please sign in to comment.