Files
flipper/.circleci/config.yml
Pascal Hartig 4550726a99 Fix Android build (#1503)
Summary:
This started failing in early August when this was deployed:
https://support.circleci.com/hc/en-us/articles/360048152911-Java-Builds-Fail-With-Unrecognized-VM-option-UseCGroupMemoryLimitForHeap-

Pull Request resolved: https://github.com/facebook/flipper/pull/1503

Test Plan: CI

Reviewed By: priteshrnandgaonkar

Differential Revision: D23373472

Pulled By: passy

fbshipit-source-id: 94c185293f1abf3831e3ea2f2f09e59e434ade93
2020-08-27 09:38:49 -07:00

45 lines
1.2 KiB
YAML

version: 2.1
executors:
default-executor:
docker:
- image: circleci/android:api-29-ndk
resource_class: large
environment:
_JAVA_OPTIONS: "-Xmx1500m -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:ParallelGCThreads=2 -Djava.util.concurrent.ForkJoinPool.common.parallelism=2"
TERM: 'dumb'
jobs:
snapshot:
executor: default-executor
steps:
- checkout
- run:
name: build and deploy
command: |
yes | sdkmanager "platforms;android-27" || true
./gradlew :android:assembleRelease && scripts/publish-android-snapshot.sh
release:
executor: default-executor
steps:
- checkout
- run:
name: build and deploy
command: |
yes | sdkmanager "platforms;android-27" || true
./gradlew :android:assembleRelease && scripts/publish-android-release.sh
workflows:
version: 2
build-and-deploy:
jobs:
- snapshot:
filters:
branches:
only: master
- release:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/