Skip to content

Commit c487744

Browse files
fix: Don't run InstallAndroidDependencies during integration tests (#4170)
Fixes intermittent error installing Android SDKs when running integration tests: ``` RuntimeException: Failed to install android dependencies. at <ScriptBlock>, /Users/runner/work/sentry-dotnet/sentry-dotnet/integration-test/cli.Tests.ps1:153 ``` We no longer need to run this build target manually as part of the environment setup.
1 parent 7c2f9d5 commit c487744

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

integration-test/cli.Tests.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,6 @@ Describe 'MAUI' -ForEach @(
144144
}
145145

146146
AddPackageReference $name 'Sentry.Maui'
147-
148-
if (Test-Path env:CI)
149-
{
150-
dotnet build $name/$name.csproj -t:InstallAndroidDependencies -f:$framework-android$androidTpv -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/" | ForEach-Object { Write-Host $_ }
151-
if ($LASTEXITCODE -ne 0)
152-
{
153-
throw "Failed to install android dependencies."
154-
}
155-
}
156147
}
157148

158149
It "uploads symbols and sources for an Android build" {

0 commit comments

Comments
 (0)