forked from dotnet/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Add test job for .NET APK instrumentation (dotnet#5862)
The Mono.Android.NET_Tests suite has been moved to a new smoke test job. Additional test configurations have been added for the interpreter and the .aab package format. Timing data for these tests has been moved to a new .csv file that will be processed separately from the non .NET 6 Mono.Android_Tests variants. Additionally, .apk / .aab artifact uploading will now only occur when a previous test step has failed. The xaprepare `Required` scenario has been removed from the apk test jobs as they should only rely on preparing Java.Interop, which can be done separately.
- Loading branch information
Showing
9 changed files
with
239 additions
and
120 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
build-tools/automation/yaml-templates/run-dotnet-preview.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
parameters: | ||
command: build | ||
project: '' | ||
arguments: '' | ||
useExitCodeForErrors: false | ||
displayName: run dotnet preview | ||
condition: succeeded() | ||
continueOnError: true | ||
|
||
steps: | ||
- powershell: | | ||
if ([Environment]::OSVersion.Platform -eq "Unix") { | ||
$dotnetPath = "$env:HOME/Library/Android/dotnet/dotnet" | ||
if (-not (Test-Path $dotnetPath)) { | ||
$dotnetPath = "$env:HOME/android-toolchain/dotnet/dotnet" | ||
} | ||
} else { | ||
$dotnetPath = "$env:USERPROFILE\android-toolchain\dotnet\dotnet.exe" | ||
} | ||
& $dotnetPath ${{ parameters.command }} ${{ parameters.project }} ${{ parameters.arguments }} | ||
if ([System.Convert]::ToBoolean("${{ parameters.useExitCodeForErrors }}") -and $LASTEXITCODE -ne 0) { | ||
Write-Host "##vso[task.logissue type=error]Test suite had $LASTEXITCODE failure(s)." | ||
Write-Host "##vso[task.complete result=Failed;]" | ||
exit 0 | ||
} | ||
displayName: ${{ parameters.displayName }} | ||
condition: ${{ parameters.condition }} | ||
continueOnError: ${{ parameters.continueOnError }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters