forked from ylatuya/XAMLator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
107 lines (80 loc) · 4.12 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Xamarin.iOS
# Build a Xamarin.iOS project.
# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin
name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
jobs:
- job: macOS_tests
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
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'
- script: msbuild /p:Configuration=Release XAMLator.Server.Net461/XAMLator.Server.Mono.Net461.csproj
displayName: 'Build XAMLator.Server.Mono.Net461'
- script: msbuild /p:Configuration=Release XAMLator.Server.Droid/XAMLator.Server.Mono.Droid.csproj
displayName: 'Build XAMLator.Server.Mono.Droid'
- script: msbuild /p:Configuration=Release XAMLator.Server.iOS/XAMLator.Server.Mono.iOS.csproj
displayName: 'Build XAMLator.Server.Mono.iOS'
- script: msbuild /p:Configuration=Release XAMLator.Server.Mac/XAMLator.Server.Mono.Mac.csproj
displayName: 'Build XAMLator.Server.Mono.Mac'
- script: msbuild /p:Configuration=Release XAMLator.Build.Tasks/XAMLator.Build.Tasks.csproj
displayName: 'Build XAMLator.Build.Tasks'
- script: msbuild /p:Configuration=Release XAMLator.Build.Tasks.Tests/XAMLator.Build.Tasks.Tests.csproj
displayName: 'Build XAMLator.Build.Tasks.Tests'
- script: mono ../../../packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe XAMLator.Build.Tasks.Tests.dll
displayName: 'Test XAMLator.Build.Tasks.Tests'
workingDirectory: XAMLator.Build.Tasks.Tests/bin/Release
- script: msbuild /p:Configuration=Release XAMLator.Server.Tests/XAMLator.Server.Tests.csproj
displayName: 'Build XAMLator.Server.Tests'
- script: mono ../../../packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe XAMLator.Server.Tests.dll
displayName: 'Test XAMLator.Server.Tests'
workingDirectory: XAMLator.Server.Tests/bin/Release
- script: mono ../../../packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe XAMLator.Build.Tasks.Tests.dll
displayName: 'Test XAMLator.Build.Tasks.Tests'
workingDirectory: XAMLator.Build.Tasks.Tests/bin/Release
- task: NuGetCommand@2
inputs:
command: 'pack'
packagesToPack: 'nuget/XAMLator.nuspec'
versioningScheme: 'byBuildNumber'
- script: msbuild /p:Configuration=Release XAMLator.Client.MonoDevelop/XAMLator.Client.MonoDevelop.csproj
displayName: 'Build XAMLator.Client.MonoDevelop'
- script: /Applications/Visual\ Studio.app/Contents/MacOS/vstool setup pack XAMLator.Client.MonoDevelop/bin/Release/net461/XAMLator.Client.MonoDevelop.dll
displayName: 'Build vs4mac Addin'
- script: mv XAMLator.*.mpack $(Build.ArtifactStagingDirectory)/
displayName: 'Copy addin'
- task: PublishBuildArtifacts@1
inputs:
artifactName: 'addin_and_nugget'
targetPath: $(Build.ArtifactStagingDirectory)
- job: windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'
- task: MSBuild@1
inputs:
configuration: 'Release'
solution: 'SampleApp/XAMLator.SampleApp.WPF/XAMLator.SampleApp.WPF.csproj'
- task: MSBuild@1
inputs:
configuration: 'Release'
solution: 'XAMLator.Client.VisualStudio/XAMLator.Client.VisualStudio.csproj'
- script: mv XAMLator.Client.VisualStudio\bin\Release\XAMLator.Client.VisualStudio.vsix $(Build.ArtifactStagingDirectory)/
displayName: 'Copy addin'
- task: PublishBuildArtifacts@1
inputs:
artifactName: 'vs_addin'
targetPath: $(Build.ArtifactStagingDirectory)