2019-06-03 19:45:14 +03:00
|
|
|
trigger:
|
2019-06-03 21:06:11 +03:00
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
|
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: Windows
|
|
|
|
|
|
|
|
pool:
|
2019-06-04 18:41:01 +03:00
|
|
|
name: 'Hosted VS2017'
|
2019-06-03 21:06:11 +03:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
|
|
|
variables:
|
|
|
|
- name: UnoPackageOutputPath
|
|
|
|
value: $(Build.ArtifactStagingDirectory)
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
maxParallel: 3
|
|
|
|
matrix:
|
|
|
|
Release_UWP:
|
|
|
|
BuildPlatform: UWP
|
|
|
|
Release_Android:
|
|
|
|
BuildPlatform: Android
|
|
|
|
Release_Wasm:
|
|
|
|
BuildPlatform: Wasm
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- task: gittools.gitversion.gitversion-task.GitVersion@4
|
|
|
|
|
|
|
|
- task: NuGetToolInstaller@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: 4.9.1
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
restoreSolution: src/Uno.AzureDevOps.sln
|
|
|
|
feedsToUse: select
|
|
|
|
|
2019-06-17 20:51:49 +03:00
|
|
|
- powershell: ((Get-Content src\Uno.AzureDevOps\Uno.AzureDevOps.Shared\Client\ClientConstants.cs -Raw) -Replace '--production-secret--','$(ProductionSecret)' -Replace '--staging-secret--','$(StagingSecret)').Trim() | Set-Content -Path src\Uno.AzureDevOps\Uno.AzureDevOps.Shared\Client\ClientConstants.cs -Encoding UTF8
|
|
|
|
displayName: Set client secrets
|
|
|
|
|
2019-06-03 21:06:11 +03:00
|
|
|
- task: MSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: src/Uno.AzureDevOps.sln
|
|
|
|
configuration: Release
|
|
|
|
platform: $(BuildPlatform)
|
|
|
|
restoreNugetPackages: false
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
ArtifactName: $(BuildPlatform)
|
|
|
|
PathtoPublish: $(UnoPackageOutputPath)
|
2019-06-12 17:14:03 +03:00
|
|
|
publishLocation: Container
|