-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build_Test-1.yml
43 lines (35 loc) · 1.02 KB
/
Build_Test-1.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
parameters:
Pool: ''
buildConfiguration: ''
buildPlatform: ''
jobs:
- job: Build_and_Test
pool:
vmImage: ${{ parameters.Pool }}
variables:
buildConfiguration: ${{ parameters.buildConfiguration }}
buildPlatform: ${{ parameters.buildPlatform }}
steps:
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.4.1'
inputs:
versionSpec: 4.4.1
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: '**/SomeConsoleApplication.sln'
- task: VSBuild@1
displayName: 'Build solution **\*.sln'
inputs:
solution: '**/SomeConsoleApplication.sln'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
- task: VSTest@2
displayName: 'VsTest - testAssemblies'
inputs:
testAssemblyVer2: |
**\$(BuildConfiguration)\*Test*.dll
!**\obj\**
codeCoverageEnabled: true
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'