Upgrade to Circle 2.1 (#289)
Summary: Use CircleCI 2.1 for common executors and remove the common build step as this is already done by Travis. Instead, focus on publishing either snapshots or releases. Pull Request resolved: https://github.com/facebook/flipper/pull/289 Reviewed By: jknoxville Differential Revision: D10216413 Pulled By: passy fbshipit-source-id: cfbc52c43187339ae6cb1c486d81e7c40216e86b
This commit is contained in:
committed by
Facebook Github Bot
parent
145b94b47d
commit
6c3a6c0d66
@@ -1,37 +1,38 @@
|
|||||||
version: 2.0
|
version: 2.1
|
||||||
jobs:
|
executors:
|
||||||
build:
|
default-executor:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/android:api-28-ndk-r17b
|
- image: circleci/android:api-28-ndk-r17b
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
name: build and deploy
|
|
||||||
command: ./gradlew :sample:assembleDebug
|
|
||||||
|
|
||||||
|
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:
|
||||||
snapshot:
|
snapshot:
|
||||||
|
executor: default-executor
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/android:api-28-ndk-r17b
|
- image: circleci/android:api-28-ndk-r17b
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: build and deploy
|
name: build and deploy
|
||||||
command: scripts/publish-android-snapshot.sh
|
command: ./gradlew :android:assembleRelease && scripts/publish-android-snapshot.sh
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
executor: default-executor
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/android:api-28-ndk-r17b
|
- image: circleci/android:api-28-ndk-r17b
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: build and deploy
|
name: build and deploy
|
||||||
command: scripts/publish-android-release.sh
|
command: ./gradlew :android:assembleRelease && scripts/publish-android-release.sh
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
|
||||||
- snapshot:
|
- snapshot:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
Reference in New Issue
Block a user