forked from Baseflow/PhotoView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
26 lines (23 loc) · 879 Bytes
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
image: Visual Studio 2017
clone_folder: C:\F
environment:
ANDROID_HOME: 'C:\Android\android-sdk'
GRADLE_USER_HOME: 'C:\G'
init:
- ps: |
appveyor DownloadFile "https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip" -FileName "C:\android-tools.zip"
Write-Host "Extracting SDK tools..."
7z x "C:\android-tools.zip" -o"$env:ANDROID_HOME" | Out-Null
install:
- ps: |
Write-Output "" > ~\.android\repositories.cfg
Write-Host "Installing Android packages:"
$pkgs = '"platform-tools"', '"extras;android;m2repository"', '"extras;google;m2repository"', '"build-tools;26.0.1"', '"platforms;android-26"'
foreach ($pkg in $pkgs) {
Write-Host "Installing ${pkg}:"
echo "y" | & $env:ANDROID_HOME\tools\bin\sdkmanager.bat ${pkg}
}
build_script:
- cmd: gradlew build --stacktrace
test: off
deploy: off