This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
/
azure-pipelines.yml
62 lines (54 loc) · 1.73 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
# Select the Agent to run the builds on
pool:
vmImage: 'macOS 10.13'
steps:
# To manually select a Xamarin SDK version on the Microsoft-hosted macOS agent,
# configure this task with the SDK version you want to target and set the "enabled" property to true.
# See https://go.microsoft.com/fwlink/?linkid=871629
- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_4_1
displayName: 'Select the Xamarin SDK version'
enabled: false
# Install NuGet on Build Agend and restore packages fot the whole solutions
- task: NuGetToolInstaller@0
displayName: 'Install NuGet'
- task: NuGetCommand@2
displayName: 'Restore NuGet packages'
inputs:
restoreSolution: '**/*.csproj'
restoreDirectory: '$(Build.Repository.LocalPath)/packages'
# Build iOS Application
- task: XamariniOS@2
displayName: 'Build Xamarin.iOS app'
inputs:
solutionFile: '**/*.iOS.csproj'
configuration: '$(BuildConfiguration)'
buildForSimulator: true
packageApp: false
# Build Android Application
- task: XamarinAndroid@1
displayName: 'Build Xamarin.Android app'
inputs:
projectFile: '**/*.Droid.csproj'
configuration: '$(BuildConfiguration)'
msbuildVersionOption: latest
# Build UI Tests
- task: MSBuild@1
displayName: 'Build Xamarin.UITest tests'
inputs:
solution: '**/*.UITests.csproj'
configuration: '$(BuildConfiguration)'
# Build Web API
- task: DotNetCoreCLI@2
displayName: 'Build ASP.NET Core Web API'
inputs:
projects: '**/*.WebAPI.csproj'
# Build Azure Functions
- task: DotNetCoreCLI@2
displayName: 'Build .NET Core Functions'
inputs:
projects: '**/*.Functions.csproj'
# Build Chatbot
- task: DotNetCoreCLI@2
displayName: 'Build .NET Core Chat Bot'
inputs:
projects: '**/*.Bot.csproj'