Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
see what dependsOn does
Browse files Browse the repository at this point in the history
  • Loading branch information
yowl committed Feb 21, 2020
1 parent 9521abf commit 5eb7833
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eng/build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
- script: eng\common\install-emscripten.cmd
displayName: Install/activate emscripten


# Build product, but not if Wasm as that builds and runs tests in one go
- ${{ if not(contains(parameters.testScenarios, 'Wasm')) }}:
- script: $(buildScriptName) $(buildConfig) skiptests
Expand Down Expand Up @@ -111,6 +112,9 @@ jobs:
- ${{ if contains(parameters.testScenarios, 'Wasm') }}:
- script: $(buildScriptName) wasm $(buildConfig)
displayName: Run Wasm tests
dependsOn: install-emscripten
variables:
EMSDK: $[ dependencies.install-emscripten.outputs['setvarStep.output_EMSDK'] ]

- task: PublishTestResults@2
condition: succeededOrFailed()
Expand Down
7 changes: 7 additions & 0 deletions eng/common/install-emscripten.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ emsdk install 1.39.4
emsdk activate 1.39.4

emsdk_env.bat

set

echo "##vso[task.setvariable variable=output_EMSDK;isOutput=true]%EMSDK%"
echo "##vso[task.setvariable variable=output_EMSDK_NODE;isOutput=true]%EMSDK_NODE%"
echo "##vso[task.setvariable variable=output_EMSDK_PYTHON;isOutput=true]%EMSDK_PYTHON%"
echo output variables set

0 comments on commit 5eb7833

Please sign in to comment.