-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_pipeline.yml
53 lines (53 loc) · 1.74 KB
/
build_pipeline.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
---
trigger: none
pool:
vmImage: windows-2019
variables:
solutionPath: '**/*.sln'
buildPlatform: Any CPU
buildConfiguration: Release
stages:
- stage: BuildCli
displayName: Build CLI
jobs:
- job: build
steps:
- task: NuGetToolInstaller@1
displayName: Install NuGet
- task: NuGetCommand@2
displayName: Run NuGet restore
inputs:
command: restore
restoreSolution: $(solutionPath)
feedsToUse: select
vstsFeed: fbaf94f7-2d40-410a-8a27-de142d8d2313/2d8c792e-c1ad-4a66-924d-5bc4fec5fca0
- task: VSBuild@1
displayName: Build solution
inputs:
solution: $(solutionPath)
platform: $(buildPlatform)
configuration: $(buildConfiguration)
- task: VSTest@2
displayName: Run unit tests
inputs:
testSelector: testAssemblies
testAssemblyVer2: |
**\*test*.dll
!**\*Behaviour.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: $(System.DefaultWorkingDirectory)
- task: CopyFiles@2
displayName: Copy artifact
inputs:
SourceFolder: $(System.DefaultWorkingDirectory)
Contents: '**\bin\$(BuildConfiguration)\**'
TargetFolder: $(build.artifactstagingdirectory)
CleanTargetFolder: true
OverWrite: true
- task: PublishBuildArtifacts@1
displayName: Publish artifact
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: _BlaiseCli
publishLocation: Container