ci: use call instead of cmd /C (#23985)

Since we want to import the environment change from RefreshEnv.cmd
we also want to share the same execution context of the
caller.
This commit is contained in:
Andrea Brancaleoni 2020-06-11 16:05:03 +02:00 committed by GitHub
parent 04be1ac4a1
commit 2e2e9a3702
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,11 +71,11 @@ SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
REM Install nodejs python git and yarn needed dependencies
choco install -y nodejs python2 git yarn windows-sdk-10-version-1903-windbg
cmd /c C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
SET PATH=C:\Python27\;C:\Python27\Scripts;%PATH%
pip install pywin32
cmd /c C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
pip2 install pywin32
REM Setup Depot Tools