-
Notifications
You must be signed in to change notification settings - Fork 1
/
vsts-tt.yml
66 lines (57 loc) · 1.82 KB
/
vsts-tt.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
parameters:
QueueName: ''
PublishArtifacts: []
phases:
- phase: Build
queue:
name: ${{ parameters.QueueName }}
demands:
- msbuild
- visualstudio
- vstest
steps:
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.4.0'
inputs:
versionSpec: 4.4.0
- task: NuGetCommand@2
displayName: NuGet restore
inputs:
restoreSolution: '$(Build.Solution)'
verbosityRestore: 'quiet'
- task: NuGetCommand@2
displayName: NuGet restore
inputs:
command: custom
arguments: restore '$(Build.SourcesDirectory)\$(Build.Target)' '-SolutionDirectory $(Build.SourcesDirectory)'
- task: MSBuild@1
displayName: 'Core Build'
inputs:
solution: '$(Build.Target)'
msbuildArguments: '/nologo /verbosity:$(Build.Verbosity) /binaryLogger:$(Build.SourcesDirectory)/$(build.buildNumber).binlog'
platform: '$(Build.Platform)'
configuration: '$(Build.Configuration)'
maximumCpuCount: false
msbuildArchitecture: '$(Build.Architecture)'
- task: VSTest@2
displayName: 'Execute Tests (Xunit)'
inputs:
testAssemblyVer2: |
**\*Test.dll
!**\xunit.*.dll
!**\obj\**
searchFolder: '$(Build.SourcesDirectory)'
runInParallel: true
runTestsInIsolation: true
codeCoverageEnabled: true
platform: '$(Build.Platform)'
configuration: '$(Build.Configuration)'
- ${{ parameters.PublishArtifacts }}
- task: DeleteFiles@1
displayName: 'Delete Artifacts from Agent'
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
*.binlog
**\bin\**\*.*
**\obj\**\*.*