Skip to content

[build] enable TSA reporting on more steps #10240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 52 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
a7d15b4
[build] enable TSA reporting on more steps
jonathanpeppers Jun 23, 2025
7cdf854
Merge branch 'main' into dev/peppers/missing-tsa
jonathanpeppers Jun 24, 2025
fa3028f
Setup CredScan suppression file
jonathanpeppers Jun 24, 2025
f08ba80
Setup BinSkim exclusion paths
jonathanpeppers Jun 24, 2025
4baf80f
Unix path separators
jonathanpeppers Jun 24, 2025
cab2804
Use $(System.DefaultWorkingDirectory)
jonathanpeppers Jun 24, 2025
cfb2014
Update azure-pipelines.yaml
jonathanpeppers Jun 24, 2025
09e7f1b
Update azure-pipelines.yaml
jonathanpeppers Jun 24, 2025
ae6f013
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
34e4061
system.debug
jonathanpeppers Jun 25, 2025
a95352e
Use `analyzeTargetGlob`
jonathanpeppers Jun 25, 2025
3888882
Revert "system.debug"
jonathanpeppers Jun 25, 2025
591863b
Update .external
jonathanpeppers Jun 25, 2025
346de56
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
5c5f58d
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
3ccd38e
.gdn\CredScanSuppressions.csk
jonathanpeppers Jun 25, 2025
cb16aa6
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
a1dda2a
Revert "Update azure-pipelines.yaml"
jonathanpeppers Jun 25, 2025
3fd276d
Revert ".gdn\CredScanSuppressions.csk"
jonathanpeppers Jun 25, 2025
0dc349c
Revert "Update azure-pipelines.yaml"
jonathanpeppers Jun 25, 2025
331d64b
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
86fbe04
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
3a49803
Revert "Update .external"
jonathanpeppers Jun 25, 2025
57ff353
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
aae35e9
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
7d5bc39
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
6ecfb7c
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
324fa6d
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
4469f36
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
fa2de22
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
f59c84a
Revert "Update azure-pipelines.yaml"
jonathanpeppers Jun 25, 2025
60dae2c
Reapply "system.debug"
jonathanpeppers Jun 25, 2025
3b677ea
Revert "Reapply "system.debug""
jonathanpeppers Jun 25, 2025
ea0a455
Update azure-pipelines.yaml
jonathanpeppers Jun 25, 2025
fd4994d
my life right now
jonathanpeppers Jun 25, 2025
ac08a21
living the dream
jonathanpeppers Jun 25, 2025
fdcb531
walking on a cloud
jonathanpeppers Jun 25, 2025
bd99d72
trying something else
jonathanpeppers Jun 26, 2025
7e5b7d8
Use multi-repo checkout everywhere
jonathanpeppers Jun 27, 2025
a60fd71
Clone `android-tools` instead of `maui` its smaller
jonathanpeppers Jun 27, 2025
cb28d63
`/android` for multi-repo checkout
jonathanpeppers Jun 27, 2025
ada173d
Fix more paths for `/android`
jonathanpeppers Jun 27, 2025
cb01d2b
More `android/`
jonathanpeppers Jun 27, 2025
da3c721
Merge branch 'main' into dev/peppers/missing-tsa
jonathanpeppers Aug 8, 2025
e76b310
project: android/Xamarin.Android.sln
jonathanpeppers Aug 8, 2025
be67a21
Update build-windows.yaml
jonathanpeppers Aug 8, 2025
1df12ca
Update azure-pipelines.yaml
jonathanpeppers Aug 8, 2025
4e659ae
Merge branch 'main' into dev/peppers/missing-tsa
jonathanpeppers Aug 13, 2025
8eb0e68
Revert "Update azure-pipelines.yaml"
jonathanpeppers Aug 13, 2025
360bec5
Update build-windows.yaml
jonathanpeppers Aug 13, 2025
4345020
Update azure-pipelines.yaml
jonathanpeppers Aug 13, 2025
3a54432
Update azure-pipelines.yaml
jonathanpeppers Aug 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gdn/CredScanSuppressions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"Suppressions": [
{
"Issue": "CSCAN-GENERAL0020",
"Justification": "test.keystore is used for testing purposes only and does not contain sensitive information.",
"FilePath": "src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Resources/Base/test.keystore"
},
{
"Issue": "CSCAN-GENERAL0060",
"Justification": "False positive detected in external/android-api-docs/docs/xml/Javax.Security.Auth.Callback/PasswordCallback.xml",
"FilePath": "external/android-api-docs/docs/xml/Javax.Security.Auth.Callback/PasswordCallback.xml"
},
{
"Issue": "CSCAN-GENERAL0060",
"Justification": "False positive detected in external/android-api-docs/docs/xml/Javax.Crypto/ISecretKey.xml",
"FilePath": "external/android-api-docs/docs/xml/Javax.Crypto/ISecretKey.xml"
},
{
"Issue": "CSCAN-GENERAL0030",
"Justification": "False positive detected in external/android-api-docs/docs/xml/Android.Service.Autofill/FillEventHistory+Event.xml",
"FilePath": "external/android-api-docs/docs/xml/Android.Service.Autofill/FillEventHistory+Event.xml"
},
{
"Issue": "CSCAN-GENERAL0060",
"Justification": "False positive detected in external/android-api-docs/docs/xml/Android.Service.Autofill/FillEventHistory+Event.xml",
"FilePath": "external/android-api-docs/docs/xml/Android.Service.Autofill/FillEventHistory+Event.xml"
}
]
}
2 changes: 1 addition & 1 deletion build-tools/automation/azure-pipelines-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ stages:

- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
project: Xamarin.Android.sln
project: android/Xamarin.Android.sln
arguments: -t:PrepareJavaInterop -c $(XA.Build.Configuration) -m:1 -v:n
displayName: prepare java.interop $(XA.Build.Configuration)
continueOnError: false
Expand Down
30 changes: 25 additions & 5 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ resources:
name: dotnet/maui
ref: refs/heads/net10.0
endpoint: xamarin
- repository: android-tools
type: github
name: dotnet/android-tools
endpoint: xamarin

parameters:
- name: pushXAPackagesToMaestro
Expand Down Expand Up @@ -64,11 +68,19 @@ extends:
${{ if eq('${{ parameters.Skip1ESComplianceTasks }}', 'true') }}:
enableAllTools: false
binskim:
enabled: true
scanOutputDirectoryOnly: true
analyzeTargetGlob: '$(System.DefaultWorkingDirectory)\bin\$(XA.Build.Configuration)\dotnet\packs\Microsoft.Android*\**.dll;$(System.DefaultWorkingDirectory)\bin\$(XA.Build.Configuration)\dotnet\packs\Microsoft.Android*\**.exe'
codeql:
compiled:
enabled: false
justificationForDisabling: CodeQL runs against the nightly build
credscan:
enabled: true
${{ if startsWith(variables['System.JobName'], 'SDLSources') }}:
suppressionsFile: .gdn/CredScanSuppressions.json
${{ else }}:
suppressionsFile: $(System.SourcesDirectory)/android/.gdn/CredScanSuppressions.json
policheck:
enabled: false
justification: Built in task does not support multi-language scanning
Expand All @@ -80,14 +92,22 @@ extends:
image: $(WindowsPoolImage1ESPT)
os: windows
sourceRepositoriesToScan:
include:
- ${{ if ne(variables['System.PullRequest.IsFork'], 'True') }}:
- repository: android-platform-support
exclude:
- repository: yaml-templates
- repository: android-platform-support
- repository: android-tools
- repository: maui
- repository: yaml-templates
suppression:
suppressionFile: $(Build.SourcesDirectory)\.gdn\.gdnsuppress
${{ if startsWith(variables['System.JobName'], 'SDLSources') }}:
suppressionFile: .gdn/.gdnsuppress
${{ else }}:
suppressionFile: $(Build.SourcesDirectory)/android/.gdn/.gdnsuppress
tsa:
enabled: true
${{ if startsWith(variables['System.JobName'], 'SDLSources') }}:
configFile: .gdn/tsaoptions-v2.json
${{ else }}:
configFile: $(Build.SourcesDirectory)/android/.gdn/tsaoptions-v2.json
settings:
skipBuildTagsForGitHubPullRequests: true
stages:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
buildConfiguration: $(XA.Build.Configuration)
configuration: $(XA.Build.Configuration)
xaSourcePath: $(System.DefaultWorkingDirectory)
xaSourcePath: $(System.DefaultWorkingDirectory)/android
testName: ""
project: ""
testResultsFiles: ""
Expand Down
2 changes: 1 addition & 1 deletion build-tools/automation/yaml-templates/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ stages:

# Always checkout a second resource to ensure we are using multi-repo checkout behavior
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#checkout-path
- checkout: maui
- checkout: android-tools

- template: /build-tools/automation/yaml-templates/setup-jdk-variables.yaml
parameters:
Expand Down
28 changes: 16 additions & 12 deletions build-tools/automation/yaml-templates/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ stages:

- template: /build-tools/automation/yaml-templates/clean.yaml

# Always checkout a second resource to ensure we are using multi-repo checkout behavior
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#checkout-path
- checkout: android-tools

- template: /build-tools/automation/yaml-templates/setup-jdk-variables.yaml
parameters:
useAgentJdkPath: false
Expand All @@ -51,25 +55,25 @@ stages:
- task: DotNetCoreCLI@2
displayName: Prepare Solution
inputs:
projects: Xamarin.Android.sln
arguments: '-c $(XA.Build.Configuration) -t:Prepare --no-restore -p:AutoProvision=true -bl:$(System.DefaultWorkingDirectory)\bin\Build$(XA.Build.Configuration)\dotnet-build-prepare.binlog'
projects: android/Xamarin.Android.sln
arguments: '-c $(XA.Build.Configuration) -t:Prepare --no-restore -p:AutoProvision=true -bl:$(System.DefaultWorkingDirectory)\android\bin\Build$(XA.Build.Configuration)\dotnet-build-prepare.binlog'

# Build Xamarin.Android and configure local workloads to test improved local build loop
- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
project: Xamarin.Android.sln
project: android/Xamarin.Android.sln
arguments: >-
-t:BuildDotNet -c $(XA.Build.Configuration) -v:n
-bl:$(System.DefaultWorkingDirectory)\bin\Build$(XA.Build.Configuration)\dotnet-build.binlog
-bl:$(System.DefaultWorkingDirectory)\android\bin\Build$(XA.Build.Configuration)\dotnet-build.binlog
displayName: Build Solution
continueOnError: false

- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
project: build-tools/create-packs/Microsoft.Android.Sdk.proj
project: android/build-tools/create-packs/Microsoft.Android.Sdk.proj
arguments: >-
-t:ConfigureLocalWorkload -c $(XA.Build.Configuration) -v:n -p:RunningOnCI=false
-bl:$(System.DefaultWorkingDirectory)\bin\Build$(XA.Build.Configuration)\local-workload.binlog
-bl:$(System.DefaultWorkingDirectory)\android\bin\Build$(XA.Build.Configuration)\local-workload.binlog
displayName: Run ConfigureLocalWorkload target
continueOnError: false

Expand All @@ -81,36 +85,36 @@ stages:
- template: /build-tools/automation/yaml-templates/run-nunit-tests.yaml
parameters:
testRunTitle: Smoke MSBuild Tests - Windows Dotnet Build
testAssembly: $(System.DefaultWorkingDirectory)\bin\Test$(XA.Build.Configuration)\$(DotNetStableTargetFramework)\Xamarin.Android.Build.Tests.dll
testAssembly: $(System.DefaultWorkingDirectory)\android\bin\Test$(XA.Build.Configuration)\$(DotNetStableTargetFramework)\Xamarin.Android.Build.Tests.dll
dotNetTestExtraArgs: --filter "TestCategory = SmokeTests"

- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml@self
parameters:
command: test
project: src/Microsoft.Android.Sdk.Analysis/Tests/Microsoft.Android.Sdk.Analysis.Tests.csproj
project: android/src/Microsoft.Android.Sdk.Analysis/Tests/Microsoft.Android.Sdk.Analysis.Tests.csproj
arguments: -c $(XA.Build.Configuration)
displayName: Test Microsoft.Android.Sdk.Analysis $(XA.Build.Configuration)
continueOnError: false

- task: BatchScript@1
displayName: Test dotnet-local.cmd - create template
inputs:
filename: dotnet-local.cmd
filename: android/dotnet-local.cmd
arguments: new android -o $(Build.StagingDirectory)/LocalWorkloadTest

- task: BatchScript@1
displayName: Test dotnet-local.cmd - build template
inputs:
filename: dotnet-local.cmd
filename: android/dotnet-local.cmd
arguments: build -v:n $(Build.StagingDirectory)/LocalWorkloadTest

# Pack .nupkgs and extract workload packs to dotnet preview test directory
- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
project: Xamarin.Android.sln
project: android/Xamarin.Android.sln
arguments: >-
-t:PackDotNet -c $(XA.Build.Configuration) -v:n
-bl:$(System.DefaultWorkingDirectory)\bin\Build$(XA.Build.Configuration)\dotnet-pack.binlog
-bl:$(System.DefaultWorkingDirectory)\android\bin\Build$(XA.Build.Configuration)\dotnet-pack.binlog
displayName: Test PackDotNet

- template: /build-tools/automation/yaml-templates/upload-results.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:

# Always checkout a second resource to ensure we are using multi-repo checkout behavior
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#checkout-path
- checkout: maui
- checkout: android-tools

- ${{ if ne(variables['System.PullRequest.IsFork'], 'True') }}:
- checkout: android-platform-support
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
configuration: $(XA.Build.Configuration)
xaSourcePath: $(System.DefaultWorkingDirectory)
xaSourcePath: $(System.DefaultWorkingDirectory)/android
command: build
project: ''
arguments: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ parameters:
jobDisplayName: '' # Display name of the job
agentCount: 1 # Number of build agents to run in parallel
testFilter: '' # Filter used to select tests (NUnit test selection language, not dotnet test filter language)
xaSourcePath: $(System.DefaultWorkingDirectory)
xaSourcePath: $(System.DefaultWorkingDirectory)/android
repositoryAlias: 'self'
commit: ''
shouldFailOnIssue: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ parameters:
testAssembly: '' # NUnit test assembly to run
testFilter: '' # Filter used to select tests (NUnit test selection language, not dotnet test filter language)
testRunTitle: '' # Title of the test run
xaSourcePath: $(System.DefaultWorkingDirectory)
xaSourcePath: $(System.DefaultWorkingDirectory)/android
retryFailedTests: true # Retry failed tests once

steps:
Expand Down
2 changes: 1 addition & 1 deletion build-tools/automation/yaml-templates/run-xaprepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ parameters:
displayName: run xaprepare
name:
configuration: $(XA.Build.Configuration)
xaSourcePath: $(System.DefaultWorkingDirectory)
xaSourcePath: $(System.DefaultWorkingDirectory)/android
condition: succeeded()
arguments:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
configuration: $(XA.Build.Configuration)
xaSourcePath: $(System.DefaultWorkingDirectory)
xaSourcePath: $(System.DefaultWorkingDirectory)/android
jdkMajorVersion: $(DefaultJavaSdkMajorVersion)
useAgentJdkPath: true
remove_dotnet: false
Expand All @@ -22,6 +22,10 @@ steps:
clean: true
submodules: recursive

# Always checkout a second resource to ensure we are using multi-repo checkout behavior
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#checkout-path
- checkout: android-tools

- template: /build-tools/automation/yaml-templates/setup-jdk-variables.yaml
parameters:
jdkMajorVersion: ${{ parameters.jdkMajorVersion }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ parameters:
agent_count: 12
stageCondition: succeeded()
stagePrefix: ''
xaSourcePath: $(System.DefaultWorkingDirectory)
xaSourcePath: $(System.DefaultWorkingDirectory)/android
repositoryAlias: 'self'
commit: ''
usesCleanImages: true
Expand Down Expand Up @@ -52,7 +52,7 @@ stages:
# Currently needed for samples/NativeAOT
- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml@self
parameters:
project: Xamarin.Android.sln
project: ${{ parameters.xaSourcePath }}/Xamarin.Android.sln
arguments: -t:PrepareJavaInterop -c $(XA.Build.Configuration) --no-restore
displayName: prepare java.interop $(XA.Build.Configuration)
continueOnError: false
Expand Down Expand Up @@ -186,7 +186,7 @@ stages:

- template: /build-tools/automation/yaml-templates/run-sliced-nunit-tests.yaml
parameters:
testAssembly: $(System.DefaultWorkingDirectory)\bin\Test$(XA.Build.Configuration)\MSBuildDeviceIntegration\$(DotNetStableTargetFramework)\MSBuildDeviceIntegration.dll
testAssembly: ${{ parameters.xaSourcePath }}\bin\Test$(XA.Build.Configuration)\MSBuildDeviceIntegration\$(DotNetStableTargetFramework)\MSBuildDeviceIntegration.dll
testFilter: name == DebuggingTest
testRunTitle: DebuggingTest tests on Windows

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parameters:
stageCondition: succeeded()
dependsOn: mac_build
stagePrefix: ''
xaSourcePath: $(System.DefaultWorkingDirectory)
xaSourcePath: $(System.DefaultWorkingDirectory)/android
repositoryAlias: 'self'
commit: ''
shouldFailOnIssue: true
Expand Down
26 changes: 13 additions & 13 deletions build-tools/automation/yaml-templates/stage-package-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,33 @@ stages:
- task: DownloadPipelineArtifact@2
inputs:
artifactName: $(TestAssembliesArtifactName)
downloadPath: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)
downloadPath: $(System.DefaultWorkingDirectory)/android/bin/Test$(XA.Build.Configuration)

# Set up dependencies to run tests in both debug and release configurations
- task: DotNetCoreCLI@2
displayName: build Xamarin.Android.Tools.BootstrapTasks.csproj
inputs:
projects: $(System.DefaultWorkingDirectory)/build-tools/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks.csproj
arguments: -c Debug -bl:$(System.DefaultWorkingDirectory)/bin/TestDebug/BootstrapTasks.binlog
projects: $(System.DefaultWorkingDirectory)/android/build-tools/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks.csproj
arguments: -c Debug -bl:$(System.DefaultWorkingDirectory)/android/bin/TestDebug/BootstrapTasks.binlog

- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
project: Xamarin.Android.sln
project: android/Xamarin.Android.sln
arguments: -t:PrepareJavaInterop -c Debug --no-restore
displayName: prepare java.interop Debug
continueOnError: false

- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
project: Xamarin.Android.sln
project: android/Xamarin.Android.sln
arguments: -t:PrepareJavaInterop -c $(XA.Build.Configuration) --no-restore
displayName: prepare java.interop $(XA.Build.Configuration)
continueOnError: false

- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
command: test
project: src/Microsoft.Android.Sdk.Analysis/Tests/Microsoft.Android.Sdk.Analysis.Tests.csproj
project: android/src/Microsoft.Android.Sdk.Analysis/Tests/Microsoft.Android.Sdk.Analysis.Tests.csproj
arguments: -c $(XA.Build.Configuration)
displayName: Test Microsoft.Android.Sdk.Analysis $(XA.Build.Configuration)
continueOnError: false
Expand Down Expand Up @@ -131,33 +131,33 @@ stages:
- task: DownloadPipelineArtifact@2
inputs:
artifactName: $(TestAssembliesArtifactName)
downloadPath: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)
downloadPath: $(System.DefaultWorkingDirectory)/android/bin/Test$(XA.Build.Configuration)

# Set up dependencies to run tests in both debug and release configurations
- task: DotNetCoreCLI@2
displayName: build Xamarin.Android.Tools.BootstrapTasks.csproj
inputs:
projects: $(System.DefaultWorkingDirectory)/build-tools/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks.csproj
arguments: -c Debug -bl:$(System.DefaultWorkingDirectory)/bin/TestDebug/BootstrapTasks.binlog
projects: $(System.DefaultWorkingDirectory)/android/build-tools/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks.csproj
arguments: -c Debug -bl:$(System.DefaultWorkingDirectory)/android/bin/TestDebug/BootstrapTasks.binlog

- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
project: Xamarin.Android.sln
project: android/Xamarin.Android.sln
arguments: -t:PrepareJavaInterop -c Debug --no-restore
displayName: prepare java.interop Debug
continueOnError: false

- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
project: Xamarin.Android.sln
project: android/Xamarin.Android.sln
arguments: -t:PrepareJavaInterop -c $(XA.Build.Configuration) --no-restore
displayName: prepare java.interop $(XA.Build.Configuration)
continueOnError: false

- template: /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
parameters:
command: test
project: src/Microsoft.Android.Sdk.Analysis/Tests/Microsoft.Android.Sdk.Analysis.Tests.csproj
project: android/src/Microsoft.Android.Sdk.Analysis/Tests/Microsoft.Android.Sdk.Analysis.Tests.csproj
arguments: -c $(XA.Build.Configuration)
displayName: Test Microsoft.Android.Sdk.Analysis $(XA.Build.Configuration)
continueOnError: false
Expand Down Expand Up @@ -226,7 +226,7 @@ stages:
- template: /build-tools/automation/yaml-templates/run-nunit-tests.yaml
parameters:
testRunTitle: Xamarin.Android.Tools.Aidl-Tests - macOS
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Tools.Aidl-Tests.dll
testAssembly: $(System.DefaultWorkingDirectory)/android/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Tools.Aidl-Tests.dll

- task: ShellScript@2
displayName: Test dotnet-local.sh
Expand Down
Loading
Loading