diff --git a/tools/ci_build/github/azure-pipelines/templates/linux-web-ci.yml b/tools/ci_build/github/azure-pipelines/templates/linux-web-ci.yml index 66682837cb..b92b75fd85 100644 --- a/tools/ci_build/github/azure-pipelines/templates/linux-web-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/linux-web-ci.yml @@ -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' diff --git a/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml b/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml index 7fb948b4e1..0bd9780b53 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml @@ -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'