[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:
Yulong Wang 2023-07-10 22:22:14 -07:00 committed by GitHub
parent 53057ec1f5
commit 5b6c1394cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -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'

View file

@ -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'