forked from k0shk0sh/FastHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
39 lines (30 loc) · 1.65 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
image: Visual Studio 2017
clone_folder: C:\FH
environment:
ANDROID_HOME: C:\\Android\\android-sdk
init:
- cmd: appveyor DownloadFile "https://dl.google.com/android/repository/tools_r25.2.5-windows.zip" -FileName "C:\android-tools.zip"
- cmd: 7z x "C:\android-tools.zip" -o"%ANDROID_HOME%" > nul
- cmd: IF NOT [%APPVEYOR_PULL_REQUEST_NUMBER%] == [] cinst cs-script
install:
- cmd: 'echo > C:/Users/appveyor/.android/repositories.cfg'
- ps: 'echo "y" | & C:/Android/android-sdk/tools/bin/sdkmanager.bat "platform-tools"'
- ps: 'echo "y" | & C:/Android/android-sdk/tools/bin/sdkmanager.bat "extras;android;m2repository"'
- ps: 'echo "y" | & C:/Android/android-sdk/tools/bin/sdkmanager.bat "extras;google;m2repository"'
- ps: 'echo "y" | & C:/Android/android-sdk/tools/bin/sdkmanager.bat "build-tools;26.0.0"'
- ps: 'echo "y" | & C:/Android/android-sdk/tools/bin/sdkmanager.bat "platforms;android-25"'
build_script:
- cmd: IF NOT [%APPVEYOR_PULL_REQUEST_NUMBER%] == [] cscs /ac C:\FH\.github\check_translations.cs
- cmd: gradlew clean assembleDebug --stacktrace
after_build:
- cmd: RENAME C:\FH\app\build\outputs\apk\debug\app-debug.apk fasthub-debug-%APPVEYOR_BUILD_VERSION%.apk
test: off
artifacts:
- path: \app\build\outputs\apk\debug\fasthub-debug-%APPVEYOR_BUILD_VERSION%.apk
deploy: off
notifications:
- provider: GitHubPullRequest
template: ':x: [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}}) <br> <br>**Message(s):** <br>{{#jobs}}{{#messages}}<br>{{message}}<br>{{/messages}}{{/jobs}}'
on_build_success: false
on_build_failure: true
on_build_status_changed: false