forked from tgjones/HlslTools
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
63 lines (50 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
trigger:
- master
pr:
- master
variables:
solution: 'src/ShaderTools.sln'
buildConfiguration: 'Release'
jobs:
- job: Build_Test_VS_Extension
strategy:
matrix:
VS2017:
imageName: 'vs2017-win2016'
vsVersion: VS2017
VS2019:
imageName: 'windows-2019'
vsVersion: VS2019
pool:
vmImage: $(imageName)
steps:
- task: NuGetToolInstaller@0
displayName: 'Install NuGet'
inputs:
versionSpec: '5.1.0'
- task: DotNetCoreCLI@2
displayName: 'Restore NuGet Packages (dotnet)'
inputs:
command: restore
projects: '$(solution)'
- task: NuGetCommand@2
displayName: 'Restore NuGet Packages (nuget)'
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
displayName: 'Build'
inputs:
solution: '$(solution)'
configuration: $(buildConfiguration)
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '**/*Tests/*.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: PublishPipelineArtifact@1
displayName: Publish Artifact
condition: and(succeeded(), eq(variables['vsVersion'], 'VS2019'))
inputs:
artifactName: VSIX
path: 'src/ShaderTools.Editor.VisualStudio/bin/$(buildConfiguration)/ShaderTools.Editor.VisualStudio.vsix'