mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
37 lines
978 B
YAML
37 lines
978 B
YAML
environment:
|
|
ANDROID_HOME: "C:\\android"
|
|
|
|
# If the gradle daemon is used, the build hangs after generating the wrapper
|
|
GRADLE_OPTS: -Dorg.gradle.daemon=false
|
|
|
|
# URL for SDK Tools, Revision 26.1.1 (September 2017)
|
|
SDK_TOOLS_URL: https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip
|
|
|
|
matrix:
|
|
- nodejs_version: 6
|
|
- 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 "build-tools;26.0.2"
|
|
|
|
- choco install gradle --version 3.4.1
|
|
|
|
- ps: Install-Product node $env:nodejs_version
|
|
- npm install
|
|
|
|
build: off
|
|
|
|
test_script:
|
|
- gradle --version
|
|
- node --version
|
|
- npm --version
|
|
- npm test
|