2018-10-31 02:02:57 +03:00
|
|
|
# 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
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'macOS 10.13'
|
|
|
|
|
2018-11-03 16:49:48 +03:00
|
|
|
name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
|
|
|
|
|
2018-10-31 02:02:57 +03:00
|
|
|
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.Net47/XAMLator.Server.Mono.Net47.csproj
|
|
|
|
displayName: 'Build XAMLator.Server.Mono.Net47'
|
|
|
|
|
|
|
|
- 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'
|
|
|
|
|
2018-11-02 22:48:44 +03:00
|
|
|
- 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
|
2018-11-03 12:58:52 +03:00
|
|
|
displayName: 'Test XAMLator.Build.Tasks.Tests'
|
2018-11-02 22:48:44 +03:00
|
|
|
workingDirectory: XAMLator.Build.Tasks.Tests/bin/Release
|
|
|
|
|
2018-10-31 02:02:57 +03:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
inputs:
|
|
|
|
command: 'pack'
|
|
|
|
packagesToPack: 'nuget/XAMLator.nuspec'
|
2018-11-03 16:49:48 +03:00
|
|
|
versioningScheme: 'byBuildNumber'
|
2018-11-03 12:58:52 +03:00
|
|
|
|
2018-10-31 02:02:57 +03:00
|
|
|
- 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'
|
|
|
|
|
2018-11-03 16:49:48 +03:00
|
|
|
- script: mv XAMLator.Client.MonoDevelop.XAMLator.Client.MonoDevelop_*.mpack $(Build.ArtifactStagingDirectory)/XAMLator.Client.MonoDevelop.mpack
|
2018-10-31 02:02:57 +03:00
|
|
|
displayName: 'Copy addin'
|
|
|
|
|
2018-11-03 18:34:23 +03:00
|
|
|
- task: PublishBuildArtifacts@1
|
2018-10-31 02:02:57 +03:00
|
|
|
inputs:
|
2018-11-03 18:34:23 +03:00
|
|
|
artifactName: 'addin_and_nugget'
|
2018-11-03 16:49:48 +03:00
|
|
|
targetPath: $(Build.ArtifactStagingDirectory)
|