forked from stratumauth/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
68 lines (57 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
# Xamarin.Android
# Build a Xamarin.Android 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
pool:
vmImage: 'windows-2022'
variables:
configuration: 'Debug'
steps:
- task: NuGetToolInstaller@1
displayName: 'Install NuGet'
- task: NuGetCommand@2
displayName: 'Restore packages'
inputs:
restoreSolution: '**/*.sln'
- task: DotNetCoreCLI@2
displayName: 'Run tests'
inputs:
command: 'test'
arguments: '--configuration $(configuration)'
publishTestResults: true
projects: 'AuthenticatorPro.Test/AuthenticatorPro.Test.csproj'
- task: XamarinAndroid@1
displayName: 'Build Android'
inputs:
projectFile: 'AuthenticatorPro.Droid/AuthenticatorPro.Droid.csproj'
outputDirectory: '$(Build.BinariesDirectory)/android'
configuration: '$(configuration)'
- task: XamarinAndroid@1
displayName: 'Build Wear OS'
inputs:
projectFile: 'AuthenticatorPro.WearOS/AuthenticatorPro.WearOS.csproj'
outputDirectory: '$(Build.BinariesDirectory)/wearos'
configuration: '$(configuration)'
- task: AndroidSigning@3
displayName: 'Sign APKs'
inputs:
apkFiles: '**/*.apk'
apksign: true
zipalign: true
apksignerKeystoreFile: 'debug.keystore'
apksignerKeystorePassword: android
apksignerKeystoreAlias: androiddebugkey
apksignerKeyPassword: android
- task: CopyFiles@2
displayName: 'Copy APKs to staging dir'
condition: succeeded()
inputs:
contents: '**/*.apk'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
displayName: 'Publish artifacts'
condition: succeeded()
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'