mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-30 03:37:44 +00:00
84 lines
2.7 KiB
YAML
84 lines
2.7 KiB
YAML
parameters:
|
|
AgentPool: 'Linux-CPU'
|
|
TestGPU: 'false'
|
|
|
|
jobs:
|
|
- job: NuGet_Test_Linux
|
|
workspace:
|
|
clean: all
|
|
timeoutInMinutes: 120
|
|
pool: ${{ parameters.AgentPool }}
|
|
dependsOn:
|
|
- NuGet_Packaging
|
|
condition: succeeded()
|
|
variables:
|
|
- group: ORT_TEST_DATA_SAS
|
|
- name: OnnxRuntimeBuildDirectory
|
|
value: '$(Build.BinariesDirectory)'
|
|
steps:
|
|
- template: set-test-data-variables-step.yml
|
|
- template: linux-set-variables-and-download.yml
|
|
|
|
- task: DownloadPipelineArtifact@0
|
|
displayName: 'Download Signed NuGet'
|
|
inputs:
|
|
artifactName: 'drop-signed-nuget'
|
|
targetPath: '$(Build.BinariesDirectory)/nuget-artifact'
|
|
|
|
- task: DownloadPipelineArtifact@0
|
|
displayName: 'Download Linux CustomOp TestData'
|
|
inputs:
|
|
artifactName: 'drop-linux'
|
|
targetPath: '$(Build.BinariesDirectory)/testdata'
|
|
|
|
- template: get-nuget-package-version-as-variable.yml
|
|
parameters:
|
|
packageFolder: '$(Build.BinariesDirectory)/nuget-artifact'
|
|
|
|
- ${{ if eq(parameters['TestGPU'], 'false') }}:
|
|
- template: ../../templates/get-docker-image-steps.yml
|
|
parameters:
|
|
Dockerfile: tools/ci_build/github/linux/docker/Dockerfile.centos
|
|
Context: tools/ci_build/github/linux/docker
|
|
DockerBuildArgs: "--build-arg BUILD_UID=$( id -u )"
|
|
Repository: onnxruntimecentoscpubuild
|
|
|
|
- script: |
|
|
set -e -x
|
|
$(Build.SourcesDirectory)/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest-docker.sh \
|
|
$(Build.SourcesDirectory) \
|
|
$(Build.BinariesDirectory) \
|
|
nuget-artifact \
|
|
$(NuGetPackageVersionNumber) \
|
|
onnxruntimecentoscpubuild \
|
|
true
|
|
displayName: 'Run Package Test (x64) on CentOS7'
|
|
env:
|
|
OnnxRuntimeBuildDirectory: $(Build.BinariesDirectory)
|
|
|
|
|
|
- ${{ if eq(parameters['TestGPU'], 'true') }}:
|
|
- template: ../../templates/get-docker-image-steps.yml
|
|
parameters:
|
|
Dockerfile: tools/ci_build/github/linux/docker/Dockerfile.manylinux2014_cuda10_2
|
|
Context: tools/ci_build/github/linux/docker
|
|
DockerBuildArgs: "--build-arg BUILD_UID=$( id -u )"
|
|
Repository: onnxruntimegpubuild
|
|
|
|
- script: |
|
|
set -e -x
|
|
$(Build.SourcesDirectory)/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest-docker-gpu.sh \
|
|
$(Build.SourcesDirectory) \
|
|
$(Build.BinariesDirectory) \
|
|
nuget-artifact \
|
|
$(NuGetPackageVersionNumber) \
|
|
onnxruntimegpubuild
|
|
displayName: 'Run Package Test GPU (x64)'
|
|
env:
|
|
OnnxRuntimeBuildDirectory: $(Build.BinariesDirectory)
|
|
|
|
- template: ../../templates/component-governance-component-detection-steps.yml
|
|
parameters :
|
|
condition : 'always'
|
|
|
|
- template: ../../templates/clean-agent-build-directory-step.yml
|