-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathazure-pipelines-linux.yml
89 lines (76 loc) · 1.79 KB
/
azure-pipelines-linux.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
trigger:
batch: true
branches:
include:
- master
paths:
exclude:
- docs
pr:
autoCancel: true
branches:
include:
- '*'
paths:
exclude:
- docs
pool:
vmImage: 'ubuntu-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: UseDotNet@2
displayName: Use .NET 6.0
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: UseDotNet@2
displayName: 'Use .NET 5.0'
inputs:
packageType: 'sdk'
version: '5.0.100'
includePreviewVersions: true
- task: UseDotNet@2
displayName: Use .NET 3.1
inputs:
version: '3.1.x'
packageType: sdk
includePreviewVersions: false
# Add a Command To List the Current .NET SDKs (Sanity Check)
- task: CmdLine@2
inputs:
script: 'dotnet --list-sdks'
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: restore
projects: '**/*.csproj'
- task: CmdLine@2
displayName: 'Install Global Tools...'
inputs:
targetType: 'inline'
script: |
dotnet tool install -g dotnet-reportgenerator-globaltool
continueOnError: true
- task: DotNetCoreCLI@2
displayName: 'Execute Tests...'
inputs:
command: 'test'
projects: '**/*.Tests.csproj'
publishTestResults: true
arguments: '--collect:"XPlat Code Coverage"'
testAssemblyVer2: |
net6.0\OfficeIMO.Tests.dll
net5.0\OfficeIMO.Tests.dll
netcoreapp3.1\OfficeIMO.Tests.dll
!**\*TestAdapter.dll
!**\obj\**