-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathazure-pipelines-pull-request.yml
48 lines (41 loc) · 1.09 KB
/
azure-pipelines-pull-request.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
trigger: none
pr:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
stages:
- stage: Build
jobs:
- job: BuildJob
displayName: Build
steps:
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 5.2.0'
inputs:
versionSpec: 5.2.0
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: '$(solution)'
feedsToUse: config
nugetConfigPath: NuGet.config
- task: VSBuild@1
displayName: 'Build solution **\*.sln'
inputs:
solution: '$(solution)'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
- task: VSTest@2
displayName: 'VsTest - testAssemblies'
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
codeCoverageEnabled: true
testAssemblyVer2: |
**\*Tests*.dll
!**\*Integration*.dll
!**\obj\**