-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathazure-pipelines.yml
79 lines (66 loc) · 1.94 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
trigger:
branches:
include:
- master
pr:
branches:
include:
- master
variables:
BuildPlatform: 'Any CPU'
BuildConfiguration: 'Release'
jobs:
- job: Build
pool:
vmImage: vs2017-win2016
strategy:
matrix:
Config_Release:
BuildConfiguration: Release
BuildOutputDirectory: Vsix
Config_Marketplace:
BuildConfiguration: Marketplace
BuildOutputDirectory: Marketplace
Config_VSIXGallery:
BuildConfiguration: VsixGallery
BuildOutputDirectory: VsixGallery
steps:
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
arguments: install --tool-path . nbgv
displayName: Install NBGV tool
continueOnError: true
- powershell: |
mkdir $(Build.ArtifactStagingDirectory)\$(BuildOutputDirectory)
- script: nbgv cloud -a
displayName: Set Version
- task: VisualStudioTestPlatformInstaller@1
displayName: VsTest Platform Installer
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: BuildVision.sln
- task: MSBuild@1
displayName: Build BuildVision.sln
inputs:
solution: BuildVision.sln
platform: $(BuildPlatform)
configuration: $(BuildConfiguration)
- task: CopyFiles@2
inputs:
contents: '**/bin/$(BuildConfiguration)/*.vsix'
targetFolder: $(Build.ArtifactStagingDirectory)/$(BuildOutputDirectory)
flattenFolders: true
- task: DotNetCoreCLI@2
inputs:
command: test
projects: 'test/**/BuildVision.UnitTests.csproj'
arguments: -c $(BuildConfiguration) --no-build --no-restore
displayName: Run Unittests
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/$(BuildOutputDirectory)
ArtifactName: $(BuildOutputDirectory)
publishLocation: Container