Skip to content

Update azure-pipelines.yml for Azure Pipelines #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 9 additions & 21 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,12 @@ steps:
- task: PublishBuildArtifacts@1
# App Center distribute
# Distribute app builds to testers and users via Visual Studio App Center

- bash: |
$ANDROID_HOME/tools/bin/sdkmanager --list
displayName: 'list already installed Android packages'
- bash: |
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-27;google_apis;x86'
displayName: 'install Android image'
- script: |
$ANDROID_HOME/emulator/emulator -list-avds
echo '---'
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n test_android_emulator -k 'system-images;android-27;google_apis;x86' --force
echo '---'
$ANDROID_HOME/emulator/emulator -list-avds
displayName: 'create AVD'
- script: |
$ANDROID_HOME/platform-tools/adb devices
echo '---'
nohup $ANDROID_HOME/emulator/emulator -avd test_android_emulator -no-snapshot > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
echo '---'
$ANDROID_HOME/platform-tools/adb devices
displayName: 'start Android emulator'
- task: AppCenterDistribute@3
inputs:
serverEndpoint: 'Appcenter'
appSlug: 'https://appcenter.ms/users/tomasz.sipek-gmail.com/apps/test6'
appFile:
buildVersion: '1'
releaseNotesOption: 'input'
releaseNotesInput: 'test'
destinationType: 'groups'