-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yml
72 lines (53 loc) · 1.74 KB
/
azure-pipelines.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Xamarin.Android and Xamarin.IOS
# Build a Xamarin.Android and Xamarin.IOS project.
# Add steps that test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin
trigger:
- master
jobs:
- job: Android
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'
- task: XamarinAndroid@1
inputs:
projectFile: '**/*droid*.csproj'
outputDirectory: '$(outputDirectory)'
configuration: '$(buildConfiguration)'
- task: DotNetCoreCLI@2
inputs:
command: test
projects: '**/*Test/*.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: AndroidSigning@3
inputs:
apkFiles: '**/*.apk'
apksign: true
apksignerKeystoreFile: 'EarablesKIT.keystore'
apksignerKeystorePassword: '$(keystorepasswordEarables)'
apksignerKeystoreAlias: 'EarablesKIT'
apksignerKeyPassword: '$(keystorepasswordEarables)'
# - job: iOS
# pool:
# vmImage: 'macOS 10.13'
# steps:
# - script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_4_1
# displayName: 'Select Xamarin SDK version'
# enabled: false
# - task: NuGetToolInstaller@0
# - task: NuGetCommand@2
# inputs:
# restoreSolution: '**/*.sln'
# - task: XamariniOS@2
# inputs:
# solutionFile: '**/*.sln'
# configuration: 'Release'
# buildForSimulator: true
# packageApp: false