-
Notifications
You must be signed in to change notification settings - Fork 15
/
azure-pipelines.yaml
50 lines (43 loc) · 1.18 KB
/
azure-pipelines.yaml
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
trigger:
- master
# Pull request validation against master branch only.
pr:
- master
variables:
buildPlatform: # Use default.
buildConfiguration: 'Release'
testAssembliesSearchPattern: 'Build\**\SharpLearning.Examples.dll'
jobs:
- job: 'CI'
displayName: 'CI'
pool:
name: Hosted VS2017
steps:
- task: NuGetCommand@2
displayName: 'NuGet Restore'
inputs:
restoreSolution: '**\*.sln'
nugetConfigPath: nuget.config
- task: VSBuild@1
displayName: 'Build solution **\*.sln'
inputs:
vsVersion: 15.0
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: VisualStudioTestPlatformInstaller@1
displayName: 'Visual Studio Test Platform Installer'
- task: VSTest@2
displayName: 'Test Assemblies'
inputs:
testAssemblyVer2: |
$(testAssembliesSearchPattern)
!**\*TestAdapter*.dll
!**\*.Testing.dll
!**\*IntegrationTests*.dll
!**\*TestFramework*.dll
!**\obj\**
vsTestVersion: toolsInstaller
runInParallel: false
runTestsInIsolation: true
codeCoverageEnabled: true
configuration: '$(buildConfiguration)'