mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
cf3cdeeb90
Summary: switch to yarn to keep consistent. Windows android build pass: https://ci.appveyor.com/project/gengjiawen/react-native/build/job/xyof6052yg2uhnmw. pass all current ci. none [GENERAL] [INTERNAL] [CI] - switch to yarn. Pull Request resolved: https://github.com/facebook/react-native/pull/20566 Differential Revision: D9213415 Pulled By: hramos fbshipit-source-id: 35183c143f831e29aa0d0c0b90baacb6a7cd7837
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
environment:
|
|
ANDROID_HOME: "C:\\android-sdk-windows"
|
|
ANDROID_NDK: "C:\\android-sdk-windows\\android-ndk-r17b"
|
|
ANDROID_BUILD_VERSION: 26
|
|
ANDROID_TOOLS_VERSION: 26.0.3
|
|
|
|
GRADLE_OPTS: -Dorg.gradle.daemon=false
|
|
|
|
SDK_TOOLS_URL: https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip
|
|
NDK_TOOLS_URL: https://dl.google.com/android/repository/android-ndk-r17b-windows-x86_64.zip
|
|
|
|
matrix:
|
|
- nodejs_version: 8
|
|
- nodejs_version: 10
|
|
|
|
install:
|
|
# Install Android SDK Tools
|
|
- mkdir "%ANDROID_HOME%"
|
|
- appveyor DownloadFile "%SDK_TOOLS_URL%" -FileName "%TMP%/sdk-tools.zip"
|
|
- 7z x "%TMP%/sdk-tools.zip" -o"%ANDROID_HOME%" > nul
|
|
- set PATH=%PATH%;"%ANDROID_HOME%\tools\bin"
|
|
|
|
- yes 2> nul | sdkmanager --licenses > nul
|
|
- sdkmanager "system-images;android-19;google_apis;armeabi-v7a"
|
|
- sdkmanager "platforms;android-%ANDROID_BUILD_VERSION%"
|
|
- sdkmanager "build-tools;%ANDROID_TOOLS_VERSION%"
|
|
- sdkmanager "add-ons;addon-google_apis-google-23"
|
|
- sdkmanager "extras;android;m2repository"
|
|
|
|
- appveyor DownloadFile "%NDK_TOOLS_URL%" -FileName "%TMP%/ndk.zip"
|
|
- 7z x "%TMP%/ndk.zip" -o"%ANDROID_HOME%" > nul
|
|
|
|
- ps: Install-Product node $env:nodejs_version
|
|
- node --version
|
|
- yarn --version
|
|
- appveyor-retry yarn install
|
|
|
|
build_script:
|
|
- gradlew.bat RNTester:android:app:assembleRelease
|
|
|
|
test_script:
|
|
- npm test
|
|
|
|
cache:
|
|
- node_modules
|
|
- "%LOCALAPPDATA%/Yarn"
|
|
- "%USERPROFILE%/.gradle/caches"
|
|
- "%USERPROFILE%/.gradle/wrapper"
|