Skip to content

Commit

Permalink
Fix android circleci (#1618)
Browse files Browse the repository at this point in the history
* test separating into different steps

* Fix command

* Trying more memory

* fix param

* other params

* increasing docker memory

* Trying setting different resource

* try 3g

* Test from a circleci blog android config

* trying another config

* Final circleci config

* Revert package json
  • Loading branch information
andrepimenta authored Jun 4, 2020
1 parent 0be6269 commit 3796692
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ jobs:
publish-pre-release-android:
working_directory: ~/MetaMask
environment:
_JAVA_OPTIONS: "-Xms1024m -Xmx2048m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xms1024m -Xmx2048m"'
JAVA_OPTS: "-Xms512m -Xmx1024m"
_JAVA_OPTIONS: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
docker:
- image: circleci/android:api-28-node8-alpha
steps:
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# org.gradle.daemon=false

AsyncStorage_db_size_in_MB=10
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ buildAndroidRelease(){
fi

# GENERATE APK
cd android && ./gradlew assembleRelease --max-workers 2
cd android && ./gradlew assembleRelease --no-daemon --max-workers 2

# GENERATE BUNDLE
if [ "$GENERATE_BUNDLE" = true ] ; then
Expand Down

0 comments on commit 3796692

Please sign in to comment.