onnxruntime/tools/ci_build/github/azure-pipelines/nuget/templates/test_macos.yml
2023-03-24 23:39:15 -07:00

58 lines
1.8 KiB
YAML

parameters:
IsMacOS : 'true'
ArtifactSuffix: ''
stages:
- stage: NuGet_Test_MacOS
dependsOn:
- NuGet_Packaging_${{ parameters.ArtifactSuffix }}
condition: succeeded()
jobs:
- job:
workspace:
clean: all
pool:
vmImage: 'macOS-12'
variables:
- name: OnnxRuntimeBuildDirectory
value: '$(Build.BinariesDirectory)'
steps:
- task: DownloadPipelineArtifact@0
displayName: 'Download Pipeline Artifact - Signed NuGet'
inputs:
artifactName: drop-signed-nuget-${{ parameters.ArtifactSuffix }}
targetPath: '$(Build.BinariesDirectory)/nuget-artifact'
- task: DownloadPipelineArtifact@0
displayName: 'Download OsX CustomOp test data'
inputs:
artifactName: 'onnxruntime-osx'
targetPath: '$(Build.BinariesDirectory)/testdata'
- template: get-nuget-package-version-as-variable.yml
parameters:
packageFolder: '$(Build.BinariesDirectory)/nuget-artifact'
- script: |
echo "TODO: Enable this test once fix this nuget test issue"
# $(Build.SourcesDirectory)/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh \
# $(Build.BinariesDirectory)/nuget-artifact \
# $(NuGetPackageVersionNumber) \
# ${{ parameters.IsMacOS }}
#
# if [ $? -ne 0 ]; then
# echo "Failed to run test"
# exit 1
# fi
displayName: 'Run Test'
env:
OnnxRuntimeBuildDirectory: $(Build.BinariesDirectory)
DisableContribOps: $(DisableContribOps)
DisableMlOps: $(DisableMlOps)
IsReleaseBuild: $(IsReleaseBuild)
- template: ../../templates/component-governance-component-detection-steps.yml
parameters :
condition : 'always'
- template: ../../templates/clean-agent-build-directory-step.yml