2018-07-19 22:53:08 +00:00
|
|
|
environment:
|
|
|
|
ANDROID_HOME: "C:\\android-sdk-windows"
|
2018-07-30 20:54:03 +00:00
|
|
|
ANDROID_NDK: "C:\\android-sdk-windows\\android-ndk-r17b"
|
2018-08-23 06:07:33 +00:00
|
|
|
ANDROID_BUILD_VERSION: 27
|
|
|
|
ANDROID_TOOLS_VERSION: 27.0.3
|
2018-07-19 22:53:08 +00:00
|
|
|
|
|
|
|
GRADLE_OPTS: -Dorg.gradle.daemon=false
|
|
|
|
|
|
|
|
SDK_TOOLS_URL: https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip
|
2018-07-30 20:54:03 +00:00
|
|
|
NDK_TOOLS_URL: https://dl.google.com/android/repository/android-ndk-r17b-windows-x86_64.zip
|
2018-07-19 22:53:08 +00:00
|
|
|
|
|
|
|
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
|
2018-08-08 04:34:36 +00:00
|
|
|
- yarn --version
|
|
|
|
- appveyor-retry yarn install
|
2018-07-19 22:53:08 +00:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- gradlew.bat RNTester:android:app:assembleRelease
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- npm test
|
2018-08-02 01:38:53 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- node_modules
|
|
|
|
- "%LOCALAPPDATA%/Yarn"
|
|
|
|
- "%USERPROFILE%/.gradle/caches"
|
|
|
|
- "%USERPROFILE%/.gradle/wrapper"
|