-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
48 lines (41 loc) · 1.1 KB
/
azure-pipelines.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:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/nGratis.AI.Kvasir.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- checkout: self
clean: true
submodules: true
- task: CmdLine@2
displayName: 'Restore .NET tools'
inputs:
script: 'dotnet tool restore'
workingDirectory: 'Source'
- task: DotNetCoreCLI@2
displayName: 'Restore packages'
inputs:
command: 'restore'
projects: |
External/cop.olympus/Source/nGratis.Cop.Olympus.sln
Source/nGratis.AI.Kvasir.sln
- task: VSBuild@1
displayName: 'Build solution'
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: VSTest@2
displayName: 'Run unit tests'
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**/bin/$(buildConfiguration)/**/*Test.dll
!**/bin/**/ref/**
searchFolder: 'Source'
pathToCustomTestAdapters: '$(UserProfile)/.nuget/packages/xunit.runner.visualstudio/2.4.3/build/netcoreapp2.1'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'