mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
added buck to circle.ci build infra
Summary: Closes https://github.com/facebook/react-native/pull/5333 Reviewed By: svcscm Differential Revision: D2858779 Pulled By: androidtrunkagent fb-gh-sync-id: 2458f6324384378ea9f6dd67dc170d42e418aa24
This commit is contained in:
parent
ae45d8bd4c
commit
0331c02c8f
16
circle.yml
16
circle.yml
@ -13,12 +13,21 @@ machine:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
pre:
|
pre:
|
||||||
|
# BUCK
|
||||||
|
- if [[ ! -e buck ]]; then git clone https://github.com/facebook/buck.git; fi
|
||||||
|
- cd buck && ant
|
||||||
|
- buck/bin/buck --version
|
||||||
|
- buck/bin/buck fetch ReactAndroid/src/test/java/com/facebook/react/modules
|
||||||
|
- buck/bin/buck fetch ReactAndroid/src/main/java/com/facebook/react
|
||||||
|
- buck/bin/buck fetch ReactAndroid/src/main/java/com/facebook/react/shell
|
||||||
|
- buck/bin/buck fetch ReactAndroid/src/androidTest/java/com/facebook/react/tests
|
||||||
# using npm@3 because of problems with shrink-wrapped optional deps installs on linux
|
# using npm@3 because of problems with shrink-wrapped optional deps installs on linux
|
||||||
- npm install -g npm@3.2
|
- npm install -g npm@3.2
|
||||||
- source scripts/circle-ci-android-setup.sh && getAndroidSDK
|
- source scripts/circle-ci-android-setup.sh && getAndroidSDK
|
||||||
- ./gradlew :ReactAndroid:downloadBoost :ReactAndroid:downloadDoubleConversion :ReactAndroid:downloadFolly :ReactAndroid:downloadGlog
|
- ./gradlew :ReactAndroid:downloadBoost :ReactAndroid:downloadDoubleConversion :ReactAndroid:downloadFolly :ReactAndroid:downloadGlog
|
||||||
cache_directories:
|
cache_directories:
|
||||||
- "ReactAndroid/build/downloads"
|
- "ReactAndroid/build/downloads"
|
||||||
|
- "buck-out"
|
||||||
test:
|
test:
|
||||||
pre:
|
pre:
|
||||||
# starting emulator in advance because it takes very long to boot
|
# starting emulator in advance because it takes very long to boot
|
||||||
@ -29,6 +38,13 @@ test:
|
|||||||
timeout: 360
|
timeout: 360
|
||||||
- source scripts/circle-ci-android-setup.sh && waitForAVD
|
- source scripts/circle-ci-android-setup.sh && waitForAVD
|
||||||
override:
|
override:
|
||||||
|
# buck tests
|
||||||
|
- buck/bin/buck test ReactAndroid/src/test/java/com/facebook/react/modules
|
||||||
|
- buck/bin/buck build ReactAndroid/src/main/java/com/facebook/react
|
||||||
|
- buck/bin/buck build ReactAndroid/src/main/java/com/facebook/react/shell
|
||||||
|
# temp, we can't run instrumentation tests yet
|
||||||
|
- buck/bin/buck build ReactAndroid/src/androidTest/java/com/facebook/react/tests
|
||||||
|
|
||||||
# unit tests
|
# unit tests
|
||||||
- ./gradlew :ReactAndroid:testDebugUnitTest -PdisablePreDex
|
- ./gradlew :ReactAndroid:testDebugUnitTest -PdisablePreDex
|
||||||
# build JS bundle for instrumentation tests
|
# build JS bundle for instrumentation tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user