Skip to content
Permalink
Browse files

Limit max heap to 2048MB

  • Loading branch information...
chrisbanes committed Nov 5, 2019
1 parent 9c8bdca commit a2f07e9bca7e9ea6bc20229b9ad0cb9ba1f63058
Showing with 8 additions and 18 deletions.
  1. +8 −18 .circleci/config.yml
@@ -3,22 +3,12 @@ version: 2.0
workspace: &workspace
~/tivi

config_android_debug: &config_android_debug
config_android: &config_android
docker:
- image: circleci/android:api-29
working_directory: *workspace
environment:
JAVA_TOOL_OPTIONS: "-Xmx3072m"
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2 -Dkotlin.incremental=false -Dkotlin.compiler.execution.strategy=in-process"
TERM: dumb

# R8 seems to run out of process so we need to limit max heap for release builds
config_android_release: &config_android_release
docker:
- image: circleci/android:api-29
working_directory: *workspace
environment:
JAVA_TOOL_OPTIONS: "-Xmx1536m"
JAVA_TOOL_OPTIONS: "-Xmx2048m"
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2 -Dkotlin.incremental=false -Dkotlin.compiler.execution.strategy=in-process"
TERM: dumb

@@ -70,7 +60,7 @@ clean_secrets: &clean_secrets

jobs:
build_debug:
<<: *config_android_debug
<<: *config_android
steps:
- <<: *update_sdk
- checkout
@@ -91,7 +81,7 @@ jobs:
- <<: *persist_workspace

check:
<<: *config_android_debug
<<: *config_android
steps:
- <<: *update_sdk
- checkout
@@ -100,13 +90,13 @@ jobs:
- <<: *restore_cache
- run:
name: Check code style
command: ./gradlew spotlessCheck dependencyUpdates --scan
command: ./gradlew spotlessCheck --scan
- run:
name: Run tests
command: ./gradlew testDebug --scan
- run:
name: Run lint
command: ./gradlew app:lintDebug --scan
command: ./gradlew app:lintDebug dependencyUpdates --scan
- store_artifacts:
path: app/build/reports
destination: reports
@@ -125,7 +115,7 @@ jobs:
path: ~/junit

build_release:
<<: *config_android_release
<<: *config_android
steps:
- <<: *update_sdk
- checkout
@@ -146,7 +136,7 @@ jobs:
- <<: *persist_workspace

deploy_to_play:
<<: *config_android_release
<<: *config_android
steps:
- <<: *update_sdk
- checkout

0 comments on commit a2f07e9

Please sign in to comment.
You can’t perform that action at this time.