forked from dotnet/msbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-dotnet-ci.yml
103 lines (98 loc) · 3.14 KB
/
.vsts-dotnet-ci.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
trigger:
- master
- exp/*
- vs*
phases:
- phase: FullOnWindows
displayName: "Build and test on Windows using full MSBuild"
queue: 'Hosted VS2017'
steps:
- task: BatchScript@1
displayName: VsDevCmd
inputs:
filename: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat'
modifyEnvironment: true
- task: BatchScript@1
displayName: cibuild.cmd
inputs:
filename: 'build/cibuild.cmd'
- task: PublishTestResults@2
displayName: Publish .NET Framework Test Results
inputs:
testRunTitle: 'Windows-on-full Full Framework'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_net46*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'Windows-on-full .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- phase: CoreOnWindows
displayName: "Build and test on Windows using .NET Core MSBuild"
queue: 'Hosted VS2017'
steps:
- task: BatchScript@1
displayName: VsDevCmd
inputs:
filename: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat'
modifyEnvironment: true
- task: BatchScript@1
displayName: cibuild.cmd
inputs:
filename: 'build/cibuild.cmd'
arguments: '-hostType Core'
- task: PublishTestResults@2
displayName: Publish .NET Framework Test Results
inputs:
testRunTitle: 'Windows-on-core Full Framework'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_net46*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'Windows-on-core .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- phase: CoreOnLinux
displayName: "Build and test on Linux using .NET Core MSBuild"
queue: Hosted Linux Preview
steps:
- bash: . 'build/cibuild.sh'
displayName: CI Build
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'Linux .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- phase: CoreOnMac
displayName: "Build and test on macOS using .NET Core MSBuild"
queue: 'Hosted macOS Preview'
steps:
- bash: . 'build/cibuild.sh'
displayName: CI Build
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'macOS .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()