forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Closes facebook#5333 Reviewed By: svcscm Differential Revision: D2858779 Pulled By: androidtrunkagent fb-gh-sync-id: 2458f6324384378ea9f6dd67dc170d42e418aa24
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,21 @@ machine: | |
|
||
dependencies: | ||
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 | ||
- npm install -g [email protected] | ||
- source scripts/circle-ci-android-setup.sh && getAndroidSDK | ||
- ./gradlew :ReactAndroid:downloadBoost :ReactAndroid:downloadDoubleConversion :ReactAndroid:downloadFolly :ReactAndroid:downloadGlog | ||
cache_directories: | ||
- "ReactAndroid/build/downloads" | ||
- "buck-out" | ||
test: | ||
pre: | ||
# starting emulator in advance because it takes very long to boot | ||
|
@@ -29,6 +38,13 @@ test: | |
timeout: 360 | ||
- source scripts/circle-ci-android-setup.sh && waitForAVD | ||
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 | ||
- ./gradlew :ReactAndroid:testDebugUnitTest -PdisablePreDex | ||
# build JS bundle for instrumentation tests | ||
|