Uno.Playground/.vsts-qa.internal.yml

170 строки
4.2 KiB
YAML
Исходник Обычный вид История

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
jobs:
- job: UWP
pool:
2018-12-18 22:36:31 +03:00
name: Default
demands:
- VS15.7.2
workspace:
clean: all
2018-12-18 22:36:31 +03:00
steps:
- checkout: self
clean: true
lfs: true
- task: DownloadSecureFile@1
inputs:
secureFile: 'b6a5d0ed-c041-44c7-8db9-9c127d0ae8a9'
- task: gittools.gitversion.gitversion-task.GitVersion@4
displayName: 'Generate version'
2018-12-18 22:36:31 +03:00
- task: NuGetToolInstaller@0
displayName: 'Install NuGet 4.7.0'
2018-12-18 22:36:31 +03:00
inputs:
versionSpec: 4.7.0
checkLatest: false
- task: NuGetCommand@2
displayName: 'Restore solution packages'
2018-12-18 22:36:31 +03:00
inputs:
command: restore
solution: src\Uno.Playground.sln
2018-12-18 22:36:31 +03:00
selectOrConfig: select
includeNuGetOrg: true
verbosityRestore: Normal
- task: MSBuild@1
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
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)
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
displayName: 'Publish artifacts'
2018-12-18 22:36:31 +03:00
condition: always()
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
2018-12-18 22:36:31 +03:00
ArtifactName: drop
ArtifactType: Container
- job: MacOS_Agent
pool:
2018-12-18 22:36:31 +03:00
name: Default
demands:
- Agent.OS -equals Darwin
- Xamarin.iOS -equals Latest
workspace:
clean: all
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
#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
displayName: 'Install NuGet 4.7.0'
2018-12-18 22:36:31 +03:00
inputs:
versionSpec: 4.7.0
2018-12-18 22:36:31 +03:00
checkLatest: false
- task: NuGetCommand@2
displayName: 'Restore iOS packages'
2018-12-18 22:36:31 +03:00
inputs:
command: restore
solution: $(TargetProject)
2018-12-18 22:36:31 +03:00
selectOrConfig: select
includeNuGetOrg: true
verbosityRestore: Normal
noCache: true
- task: NuGetCommand@2
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
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
displayName: 'Build iOS project'
2018-12-18 22:36:31 +03:00
inputs:
solution: $(TargetProject)
2018-12-18 22:36:31 +03:00
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
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:
PathtoPublish: $(Build.ArtifactStagingDirectory)
2018-12-18 22:36:31 +03:00
ArtifactName: drop
ArtifactType: Container