-
Notifications
You must be signed in to change notification settings - Fork 89
/
azure-pipelines.yml
41 lines (41 loc) · 1.21 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
pool:
vmImage: 'windows-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .NET SDK'
inputs:
packageType: 'sdk'
version: 9.0.100
- task: DotNetCoreCLI@2
displayName: 'Pack Templates'
inputs:
packagesToPack: 'Avalonia.Templates.csproj'
command: pack
outputDir: '$(Build.ArtifactStagingDirectory)/NuGet'
verbosityPack: normal
- task: CmdLine@2
displayName: 'Install templates'
inputs:
script: 'dotnet new install $(Build.ArtifactStagingDirectory)/NuGet/*.nupkg'
- task: CmdLine@2
displayName: 'Install workload'
inputs:
script: 'dotnet workload install android ios wasm-tools'
- task: PowerShell@2
displayName: 'Run Tests'
inputs:
filePath: 'tests/build-test.ps1'
failOnStdError: true
workingDirectory: 'tests'
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/NuGet'
artifactName: 'NuGet'
condition: succeeded()
- task: PublishBuildArtifacts@1
displayName: 'Publish Test Binlog Artifacts'
inputs:
pathtoPublish: 'binlog/test.binlog'
artifactName: 'TestBinlog'
condition: failed()