2018-12-19 19:20:03 +03:00
|
|
|
variables:
|
|
|
|
NUGET_PACKAGES: $(Agent.WorkFolder)/.nuget
|
|
|
|
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)/.nuget-http-cache
|
|
|
|
UnoPackageOutputPath: $(Build.ArtifactStagingDirectory)/Packages
|
2018-12-18 22:36:31 +03:00
|
|
|
|
2018-12-19 19:20:03 +03:00
|
|
|
jobs:
|
|
|
|
- job: UWP
|
|
|
|
pool:
|
2018-12-18 22:36:31 +03:00
|
|
|
name: Default
|
|
|
|
demands:
|
|
|
|
- VS15.7.2
|
2019-01-09 19:29:18 +03:00
|
|
|
|
2018-12-19 19:20:03 +03:00
|
|
|
workspace:
|
|
|
|
clean: all
|
2018-12-18 22:36:31 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
lfs: true
|
2019-01-09 19:29:18 +03:00
|
|
|
|
|
|
|
- task: DownloadSecureFile@1
|
|
|
|
inputs:
|
|
|
|
secureFile: 'b6a5d0ed-c041-44c7-8db9-9c127d0ae8a9'
|
|
|
|
|
2018-12-19 19:20:03 +03:00
|
|
|
- task: gittools.gitversion.gitversion-task.GitVersion@4
|
|
|
|
displayName: 'Generate version'
|
2018-12-18 22:36:31 +03:00
|
|
|
|
|
|
|
- task: NuGetToolInstaller@0
|
2018-12-19 19:20:03 +03:00
|
|
|
displayName: 'Install NuGet 4.7.0'
|
2018-12-18 22:36:31 +03:00
|
|
|
inputs:
|
|
|
|
versionSpec: 4.7.0
|
|
|
|
checkLatest: false
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
2018-12-19 19:20:03 +03:00
|
|
|
displayName: 'Restore solution packages'
|
2018-12-18 22:36:31 +03:00
|
|
|
inputs:
|
|
|
|
command: restore
|
2018-12-19 00:24:28 +03:00
|
|
|
solution: src\Uno.Playground.sln
|
2018-12-18 22:36:31 +03:00
|
|
|
selectOrConfig: select
|
|
|
|
includeNuGetOrg: true
|
|
|
|
verbosityRestore: Normal
|
|
|
|
|
|
|
|
- task: MSBuild@1
|
2018-12-19 00:24:28 +03:00
|
|
|
displayName: 'Update version'
|
2018-12-18 22:36:31 +03:00
|
|
|
inputs:
|
|
|
|
solution: src\Build\Build.proj
|
|
|
|
msbuildLocationMethod: version
|
|
|
|
msbuildVersion: latest
|
|
|
|
msbuildArchitecture: x86
|
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
restoreNugetPackages: false
|
|
|
|
logProjectEvents: false
|
|
|
|
createLogFile: false
|
|
|
|
|
|
|
|
- task: MSBuild@1
|
2018-12-19 00:24:28 +03:00
|
|
|
displayName: 'Build solution'
|
2018-12-18 22:36:31 +03:00
|
|
|
inputs:
|
2019-01-09 21:36:37 +03:00
|
|
|
solution: src\Uno.Playground.sln
|
2018-12-18 22:36:31 +03:00
|
|
|
msbuildLocationMethod: version
|
|
|
|
msbuildVersion: latest
|
|
|
|
msbuildArchitecture: x86
|
2019-01-09 22:51:38 +03:00
|
|
|
msbuildArguments: /p:AndroidSigningKeyStore=$(DownloadSecureFile.SecureFilePath) /p:AndroidSigningKeyPass=$(AndroidSigningKeyPass) /p:AndroidSigningStorePass=$(AndroidSigningStorePass)
|
2018-12-19 19:20:03 +03:00
|
|
|
configuration: Release
|
|
|
|
platform: 'Any CPU'
|
2018-12-18 22:36:31 +03:00
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
restoreNugetPackages: false
|
|
|
|
logProjectEvents: false
|
|
|
|
createLogFile: false
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
2018-12-19 19:20:03 +03:00
|
|
|
displayName: 'Publish artifacts'
|
2018-12-18 22:36:31 +03:00
|
|
|
condition: always()
|
|
|
|
inputs:
|
2018-12-19 19:20:03 +03:00
|
|
|
PathtoPublish: $(Build.ArtifactStagingDirectory)
|
2018-12-18 22:36:31 +03:00
|
|
|
ArtifactName: drop
|
|
|
|
ArtifactType: Container
|
|
|
|
|
2018-12-19 19:20:03 +03:00
|
|
|
- job: MacOS_Agent
|
|
|
|
pool:
|
2018-12-18 22:36:31 +03:00
|
|
|
name: Default
|
|
|
|
demands:
|
|
|
|
- Agent.OS -equals Darwin
|
2018-12-19 19:20:03 +03:00
|
|
|
- Xamarin.iOS -equals Latest
|
2019-01-09 19:29:18 +03:00
|
|
|
|
2018-12-19 19:20:03 +03:00
|
|
|
workspace:
|
|
|
|
clean: all
|
2019-01-09 19:29:18 +03:00
|
|
|
|
2018-12-19 19:20:03 +03:00
|
|
|
variables:
|
|
|
|
TargetProject: $(Build.SourcesDirectory)/src/Uno.Playground.iOS/Uno.Playground.iOS.csproj
|
|
|
|
|
2018-12-18 22:36:31 +03:00
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
lfs: true
|
2018-12-19 19:20:03 +03:00
|
|
|
|
|
|
|
#Fixes gitversion task
|
|
|
|
- bash: |
|
|
|
|
shopt -s nullglob
|
|
|
|
function join_by { local IFS="$1"; shift; echo "$*"; }
|
|
|
|
lib_path=$(join_by ';' $(Agent.WorkFolder)/_tasks/GitVersion*/4.0.*/lib/osx)
|
|
|
|
echo LD_LIBRARY_PATH: $lib_path
|
|
|
|
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$lib_path"
|
|
|
|
|
|
|
|
- task: gittools.gitversion.gitversion-task.GitVersion@4
|
|
|
|
displayName: 'Generate version'
|
2018-12-18 22:36:31 +03:00
|
|
|
|
|
|
|
- task: NuGetToolInstaller@0
|
2018-12-19 19:20:03 +03:00
|
|
|
displayName: 'Install NuGet 4.7.0'
|
2018-12-18 22:36:31 +03:00
|
|
|
inputs:
|
2018-12-19 19:20:03 +03:00
|
|
|
versionSpec: 4.7.0
|
2018-12-18 22:36:31 +03:00
|
|
|
checkLatest: false
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
2018-12-19 19:20:03 +03:00
|
|
|
displayName: 'Restore iOS packages'
|
2018-12-18 22:36:31 +03:00
|
|
|
inputs:
|
|
|
|
command: restore
|
2018-12-19 19:20:03 +03:00
|
|
|
solution: $(TargetProject)
|
2018-12-18 22:36:31 +03:00
|
|
|
selectOrConfig: select
|
|
|
|
includeNuGetOrg: true
|
|
|
|
verbosityRestore: Normal
|
|
|
|
noCache: true
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
2018-12-19 19:20:03 +03:00
|
|
|
displayName: 'Restore build packages'
|
2018-12-18 22:36:31 +03:00
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
solution: $(Build.SourcesDirectory)/src/Build/Build.csproj
|
|
|
|
selectOrConfig: select
|
|
|
|
includeNuGetOrg: true
|
|
|
|
verbosityRestore: Normal
|
|
|
|
noCache: true
|
|
|
|
|
|
|
|
- task: MSBuild@1
|
2018-12-19 19:20:03 +03:00
|
|
|
displayName: 'Update version'
|
2018-12-18 22:36:31 +03:00
|
|
|
inputs:
|
|
|
|
solution: src/Build/build.proj
|
|
|
|
msbuildLocationMethod: version
|
|
|
|
msbuildVersion: latest
|
|
|
|
msbuildArchitecture: x86
|
|
|
|
msbuildArguments:
|
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
restoreNugetPackages: false
|
|
|
|
logProjectEvents: false
|
|
|
|
createLogFile: false
|
|
|
|
|
|
|
|
- task: MSBuild@1
|
2018-12-19 19:20:03 +03:00
|
|
|
displayName: 'Build iOS project'
|
2018-12-18 22:36:31 +03:00
|
|
|
inputs:
|
2018-12-19 19:20:03 +03:00
|
|
|
solution: $(TargetProject)
|
2018-12-18 22:36:31 +03:00
|
|
|
msbuildLocationMethod: version
|
|
|
|
msbuildVersion: latest
|
|
|
|
msbuildArchitecture: x86
|
2018-12-19 19:20:03 +03:00
|
|
|
configuration: Release
|
|
|
|
platform: iPhone
|
2018-12-18 22:36:31 +03:00
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
restoreNugetPackages: false
|
|
|
|
logProjectEvents: false
|
|
|
|
createLogFile: false
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
2018-12-19 19:20:03 +03:00
|
|
|
PathtoPublish: $(Build.ArtifactStagingDirectory)
|
2018-12-18 22:36:31 +03:00
|
|
|
ArtifactName: drop
|
|
|
|
ArtifactType: Container
|
|
|
|
|