mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
added test with browserstack credentials
This commit is contained in:
parent
b130c60909
commit
240141ce02
1 changed files with 11 additions and 36 deletions
|
|
@ -43,26 +43,6 @@ stages:
|
|||
dotnet workload install maui maui-android android
|
||||
workingDirectory: '$(Build.SourcesDirectory)\csharp'
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: List installed workloads
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
$output = dotnet --list-sdks
|
||||
Write-Output $output
|
||||
$output1 = dotnet workload list
|
||||
Write-Output $output1
|
||||
workingDirectory: '$(Build.SourcesDirectory)\csharp'
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Generating MAUI keystore
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
Write-Host "Generating debug.keystore"
|
||||
keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
|
||||
workingDirectory: '$(Build.SourcesDirectory)\csharp'
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Publish Android MAUI APK
|
||||
inputs:
|
||||
|
|
@ -88,22 +68,6 @@ stages:
|
|||
}
|
||||
displayName: 'Search for APK files recursively'
|
||||
|
||||
- task: PowerShell@2
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
$folderPath = "$(Build.SourcesDirectory)"
|
||||
$fileExtension = "*.aab"
|
||||
Write-Host "Searching for files with extension $fileExtension in $folderPath"
|
||||
$files = Get-ChildItem -Path $folderPath -Recurse -Filter $fileExtension
|
||||
if ($files) {
|
||||
Write-Host "Found files:"
|
||||
$files | ForEach-Object { Write-Host $_.FullName }
|
||||
} else {
|
||||
Write-Host "No files found."
|
||||
}
|
||||
displayName: 'Search for AAB files recursively'
|
||||
|
||||
- task: PowerShell@2
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
|
|
@ -131,3 +95,14 @@ stages:
|
|||
inputs:
|
||||
artifactName: 'test signed apk'
|
||||
targetPath: '$(Build.ArtifactStagingDirectory)'
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Run BrowserStack test
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
dotnet test
|
||||
workingDirectory: '$(Build.SourcesDirectory)\csharp\test\Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android'
|
||||
env:
|
||||
BROWSERSTACK_USERNAME: $(browserstack_username)
|
||||
BROWSERSTACK_TOKEN: $(browserstack_access_key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue