-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathlinux-build.yml
58 lines (48 loc) · 1.25 KB
/
linux-build.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
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
#netcoreapp2_1:
# framework: netcoreapp2.1
netcoreapp3_1:
framework: netcoreapp3.1
net5_0:
framework: net5.0
maxParallel: 2
steps:
- task: UseDotNet@2
displayName: install dotnet core 2.1
inputs:
version: 2.1.x
- task: UseDotNet@2
displayName: install dotnet core 3.1
inputs:
version: 3.1.x
- task: UseDotNet@2
displayName: install dotnet 5.0
inputs:
version: '5.0.x'
- task: DotNetCoreCLI@2
displayName: DotNetCoreCLI - Restore Solution
inputs:
command: "restore"
projects: "BASE/*.sln"
- task: DotNetCoreCLI@2
displayName: DotNetCoreCLI - Build Solution
inputs:
command: "build"
projects: "BASE/*.sln"
arguments: "--configuration Release --no-restore"
- task: DotNetCoreCLI@2
displayName: DotNetCoreCLI - Test $(framework)
inputs:
command: "test"
projects: "BASE/Test/**/*.Tests.csproj"
arguments: "--configuration Release --framework $(framework) --no-build -l trx --filter TestCategory!=WindowsOnly"
## Publish Test results
- task: PublishTestResults@2
condition: always()
inputs:
testRunner: "VSTest"
testResultsFiles: "**/*.trx"
failTaskOnFailedTests: true