Summary: Android SDK license SHA has been updated as of January 16, 2019 so it needs to be re-accepted. This is only needed for CircleCI since in Travis setup `sdkmanager` is used in order to accept the Licenses. Pull Request resolved: https://github.com/facebook/flipper/pull/359 Differential Revision: D13751841 Pulled By: passy fbshipit-source-id: f3d84277f06bedf06b7a766429d9f7e3275bb516
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
version: 2.1
|
|
executors:
|
|
default-executor:
|
|
docker:
|
|
- image: circleci/android:api-28-ndk-r17b
|
|
|
|
environment:
|
|
_JAVA_OPTIONS: "-Xmx1500m -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:ParallelGCThreads=2 -Djava.util.concurrent.ForkJoinPool.common.parallelism=2"
|
|
TERM: 'dumb'
|
|
|
|
jobs:
|
|
add_accepted_android_sdk_license:
|
|
executor: default-executor
|
|
docker:
|
|
- image: circleci/android:api-28-ndk-r17b
|
|
- run:
|
|
name: Add accepted Android SDK license
|
|
command: |
|
|
mkdir -p "$ANDROID_HOME/licenses/"
|
|
echo > "$ANDROID_HOME/licenses/android-sdk-license"
|
|
echo -n 24333f8a63b6825ea9c5514f83c2829b004d1fee > "$ANDROID_HOME/licenses/android-sdk-license"
|
|
snapshot:
|
|
executor: default-executor
|
|
docker:
|
|
- image: circleci/android:api-28-ndk-r17b
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: build and deploy
|
|
command: ./gradlew :android:assembleRelease && scripts/publish-android-snapshot.sh
|
|
|
|
release:
|
|
executor: default-executor
|
|
docker:
|
|
- image: circleci/android:api-28-ndk-r17b
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: build and deploy
|
|
command: ./gradlew :android:assembleRelease && scripts/publish-android-release.sh
|
|
|
|
workflows:
|
|
version: 2
|
|
build-and-deploy:
|
|
jobs:
|
|
- add_accepted_android_sdk_license
|
|
- snapshot:
|
|
filters:
|
|
branches:
|
|
only: master
|
|
- release:
|
|
filters:
|
|
tags:
|
|
only: /^v.*/
|
|
branches:
|
|
ignore: /.*/
|