mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-06 00:03:22 +00:00
* Added publish test results step to Linux and Mac builds. * Fix test result file pattern.
50 lines
1.9 KiB
YAML
50 lines
1.9 KiB
YAML
parameters:
|
|
AgentPool : 'Linux-CPU'
|
|
JobName : 'Linux_CI_Dev'
|
|
SubmoduleCheckoutMode: ''
|
|
BuildCommand: 'tools/ci_build/github/linux/run_dockerbuild.sh -o ubuntu16.04 -d cpu -r $(Build.BinariesDirectory) -x "--use_mklml --use_tvm --build_wheel"'
|
|
DoNugetPack: 'false'
|
|
NuPackScript: ''
|
|
ArtifactName: 'drop-linux'
|
|
TimeoutInMinutes: 120
|
|
# to inject strategy, you need to pass in the whole yaml structure -
|
|
# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema#strategies
|
|
# see example in orttraining-linux-gpu-ci-pipeline.yml
|
|
Strategy: ''
|
|
|
|
jobs:
|
|
- job: ${{ parameters.JobName }}
|
|
workspace:
|
|
clean: all
|
|
timeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
|
|
pool: ${{ parameters.AgentPool }}
|
|
${{ if ne(parameters.Strategy, '') }}:
|
|
strategy:
|
|
${{ parameters.Strategy }}
|
|
steps:
|
|
- checkout: self
|
|
${{ if ne(parameters.SubmoduleCheckoutMode, '') }}:
|
|
submodules: ${{ parameters.SubmoduleCheckoutMode }}
|
|
- template: linux-set-variables-and-download.yml
|
|
- script: ${{ parameters.BuildCommand }}
|
|
displayName: 'Command Line Script'
|
|
- task: PublishTestResults@2
|
|
displayName: 'Publish unit test results'
|
|
inputs:
|
|
testResultsFiles: '**/*.results.xml'
|
|
searchFolder: '$(Build.BinariesDirectory)'
|
|
testRunTitle: 'Unit Test Run'
|
|
condition: succeededOrFailed()
|
|
- ${{ if eq(parameters['DoNugetPack'], 'true') }}:
|
|
- script: |
|
|
${{ parameters.NuPackScript }}
|
|
displayName: 'Create Artifacts'
|
|
- task: PublishPipelineArtifact@0
|
|
displayName: 'Publish Pipeline Artifact'
|
|
inputs:
|
|
artifactName: ${{ parameters.ArtifactName }}
|
|
targetPath: '$(Build.ArtifactStagingDirectory)'
|
|
- template: component-governance-component-detection-steps.yml
|
|
parameters :
|
|
condition : 'succeeded'
|
|
- template: clean-agent-build-directory-step.yml
|