mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
[js/test] CI: use pre-downloaded testdata in image (#16562)
### Description update web CI to use pre-downloaded testdata in image
This commit is contained in:
parent
53057ec1f5
commit
5b6c1394cb
2 changed files with 12 additions and 0 deletions
|
|
@ -115,6 +115,12 @@ jobs:
|
|||
node -e "a=require('child_process').execSync('git diff --name-only').toString();if(a)throw new Error('Following documents are not up-to-date: (did you run \"npm run build:doc\"?)\n'+a)"
|
||||
workingDirectory: '$(Build.SourcesDirectory)/js/web'
|
||||
displayName: 'Check out of dated documents'
|
||||
- script: |
|
||||
if [[ -e "/data/onnx/test/data/node/__generated_onnx_node_tests" ]] then
|
||||
cp -r /data/onnx/test/ $(Build.SourcesDirectory)/js/test/
|
||||
fi
|
||||
workingDirectory: '$(Build.SourcesDirectory)/js/web'
|
||||
displayName: 'Copy pre-downloaded test data'
|
||||
- task: PowerShell@2
|
||||
inputs:
|
||||
filePath: '$(Build.SourcesDirectory)/tools/ci_build/github/js/pack-npm-packages.ps1'
|
||||
|
|
|
|||
|
|
@ -123,6 +123,12 @@ jobs:
|
|||
node -e "a=require('child_process').execSync('git diff --name-only').toString();if(a)throw new Error('Following documents are not up-to-date: (did you run \"npm run build:doc\"?)\n'+a)"
|
||||
workingDirectory: '$(Build.SourcesDirectory)\js\web'
|
||||
displayName: 'Check out of dated documents'
|
||||
- script: |
|
||||
if exist "C:\local\data\onnx\test\data\node\__generated_onnx_node_tests" (
|
||||
xcopy C:\local\data\onnx\test\ $(Build.SourcesDirectory)\js\test\ /E
|
||||
)
|
||||
workingDirectory: '$(Build.SourcesDirectory)\js\web'
|
||||
displayName: 'Copy pre-downloaded test data'
|
||||
- task: PowerShell@2
|
||||
inputs:
|
||||
filePath: '$(Build.SourcesDirectory)\tools\ci_build\github\js\pack-npm-packages.ps1'
|
||||
|
|
|
|||
Loading…
Reference in a new issue