Consolidated download and install steps.
This commit is contained in:
parent
ef7b698205
commit
7a108adc4a
|
@ -1,9 +1,8 @@
|
||||||
# 4 april 2019
|
# 4 april 2019
|
||||||
# see https://github.com/Microsoft/azure-pipelines-image-generation/issues/374 for context and source
|
# see https://github.com/Microsoft/azure-pipelines-image-generation/issues/374 for context and source
|
||||||
steps:
|
steps:
|
||||||
- powershell: 'Invoke-WebRequest https://www.python.org/ftp/python/3.7.1/python-3.7.1-amd64-webinstall.exe -OutFile C:\py3-setup.exe'
|
|
||||||
displayName: 'Download Python 3'
|
|
||||||
- script: |
|
- script: |
|
||||||
|
powershell -Command "Invoke-WebRequest https://www.python.org/ftp/python/3.7.1/python-3.7.1-amd64-webinstall.exe -OutFile C:\py3-setup.exe"
|
||||||
C:\py3-setup.exe /quiet PrependPath=0 InstallAllUsers=0 Include_launcher=0 InstallLauncherAllUsers=0 Include_test=0 Include_doc=0 Include_dev=0 Include_debug=0 Include_tcltk=0 TargetDir=C:\Python37
|
C:\py3-setup.exe /quiet PrependPath=0 InstallAllUsers=0 Include_launcher=0 InstallLauncherAllUsers=0 Include_test=0 Include_doc=0 Include_dev=0 Include_debug=0 Include_tcltk=0 TargetDir=C:\Python37
|
||||||
@echo ##vso[task.prependpath]C:\Python37
|
@echo ##vso[task.prependpath]C:\Python37
|
||||||
@echo ##vso[task.prependpath]C:\Python37\Scripts
|
@echo ##vso[task.prependpath]C:\Python37\Scripts
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
# 4 april 2019
|
# 4 april 2019
|
||||||
# why this? because choco isn't available on the VS2015 image and is extremely slow on the VS2017 one (it should not take 2.5 minutes to install just ninja!)
|
# why this? because choco isn't available on the VS2015 image and is extremely slow on the VS2017 one (it should not take 2.5 minutes to install just ninja!)
|
||||||
steps:
|
steps:
|
||||||
- powershell: 'Invoke-WebRequest https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip -OutFile C:\ninja-win.zip'
|
|
||||||
displayName: 'Download Ninja'
|
|
||||||
- script: |
|
- script: |
|
||||||
|
powershell -Command "Invoke-WebRequest https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip -OutFile C:\ninja-win.zip"
|
||||||
mkdir C:\ninja
|
mkdir C:\ninja
|
||||||
powershell -Command "Expand-Archive -LiteralPath C:\ninja-win.zip -DestinationPath C:\ninja"
|
powershell -Command "Expand-Archive -LiteralPath C:\ninja-win.zip -DestinationPath C:\ninja"
|
||||||
@echo ##vso[task.prependpath]C:\ninja
|
@echo ##vso[task.prependpath]C:\ninja
|
||||||
|
|
Loading…
Reference in New Issue