|
10 | 10 |
|
11 | 11 | # Global variables |
12 | 12 | variables: |
13 | | - DotNetCoreVersion: 3.1.100 |
| 13 | + DotNetCoreVersion: 3.1.201 |
14 | 14 | HostedMac: Hosted Mac Internal |
15 | 15 | HostedWinVS2019: Hosted Windows 2019 with VS2019 |
16 | 16 |
|
17 | 17 | jobs: |
18 | 18 | - job: windows_build |
19 | | - displayName: Windows Build and Test |
| 19 | + displayName: Windows - .NET Framework |
20 | 20 | pool: $(HostedWinVS2019) |
21 | 21 | timeoutInMinutes: 20 |
22 | 22 | workspace: |
|
68 | 68 | testResultsFiles: TestResult-*.xml |
69 | 69 | condition: succeededOrFailed() |
70 | 70 |
|
| 71 | +- job: windows_dotnet_build |
| 72 | + displayName: Windows - .NET Core |
| 73 | + pool: $(HostedWinVS2019) |
| 74 | + timeoutInMinutes: 20 |
| 75 | + workspace: |
| 76 | + clean: all |
| 77 | + steps: |
| 78 | + - checkout: self |
| 79 | + submodules: recursive |
| 80 | + |
| 81 | + - task: UseDotNet@2 |
| 82 | + displayName: Use .NET Core $(DotNetCoreVersion) |
| 83 | + inputs: |
| 84 | + version: $(DotNetCoreVersion) |
| 85 | + |
| 86 | + - task: DotNetCoreCLI@2 |
| 87 | + displayName: Prepare Solution |
| 88 | + inputs: |
| 89 | + projects: Java.Interop.sln |
| 90 | + arguments: '-c $(Build.Configuration) -target:Prepare' |
| 91 | + |
| 92 | + - task: DotNetCoreCLI@2 |
| 93 | + displayName: Build Solution |
| 94 | + inputs: |
| 95 | + projects: Java.Interop.sln |
| 96 | + arguments: '-c $(Build.Configuration)' |
| 97 | + |
| 98 | + - task: DotNetCoreCLI@2 |
| 99 | + displayName: 'Tests: generator' |
| 100 | + inputs: |
| 101 | + command: test |
| 102 | + arguments: bin\Test$(Build.Configuration)\generator-Tests.dll |
| 103 | + continueOnError: true |
| 104 | + |
| 105 | + - task: DotNetCoreCLI@2 |
| 106 | + displayName: 'Tests: JavaCallableWrappers' |
| 107 | + inputs: |
| 108 | + command: test |
| 109 | + arguments: bin\Test$(Build.Configuration)\Java.Interop.Tools.JavaCallableWrappers-Tests.dll |
| 110 | + continueOnError: true |
| 111 | + |
| 112 | + - task: DotNetCoreCLI@2 |
| 113 | + displayName: 'Tests: logcat-parse' |
| 114 | + inputs: |
| 115 | + command: test |
| 116 | + arguments: bin\Test$(Build.Configuration)\logcat-parse-Tests.dll |
| 117 | + continueOnError: true |
| 118 | + |
| 119 | + - task: DotNetCoreCLI@2 |
| 120 | + displayName: 'Tests: ApiXmlAdjuster' |
| 121 | + inputs: |
| 122 | + command: test |
| 123 | + arguments: bin\Test$(Build.Configuration)\Xamarin.Android.Tools.ApiXmlAdjuster-Tests.dll |
| 124 | + continueOnError: true |
| 125 | + |
| 126 | + - task: DotNetCoreCLI@2 |
| 127 | + displayName: 'Tests: Bytecode' |
| 128 | + inputs: |
| 129 | + command: test |
| 130 | + arguments: bin\Test$(Build.Configuration)\Xamarin.Android.Tools.Bytecode-Tests.dll |
| 131 | + continueOnError: true |
| 132 | + |
| 133 | + - powershell: | |
| 134 | + Write-Host "Current job status is: $env:AGENT_JOBSTATUS" |
| 135 | + if ($env:AGENT_JOBSTATUS -eq "SucceededWithIssues") { |
| 136 | + Write-Host "##vso[task.complete result=Failed;]DONE" |
| 137 | + } |
| 138 | + displayName: Fail job if tests failed |
| 139 | + |
71 | 140 | - job: mac_build |
72 | | - displayName: Mac Build and Test |
| 141 | + displayName: Mac - Mono |
73 | 142 | pool: $(HostedMac) |
74 | 143 | timeoutInMinutes: 20 |
75 | 144 | workspace: |
|
0 commit comments