ci: update windows image to avoid using choco

This commit is contained in:
Alan Agius 2019-12-07 13:27:56 +01:00 committed by Keen Yee Liau
parent f1985e1315
commit 039c1bde31
2 changed files with 12 additions and 7 deletions

View File

@ -61,7 +61,12 @@ executors:
resource_class: windows.medium
shell: powershell.exe -ExecutionPolicy Bypass
machine:
image: windows-server-2019
# Windows preview image that includes the following:
# - Visual Studio 2019 build tools
# - Node 12
# - yarn 1.17
# - Python 3 3.7.4
image: windows-server-2019-vs2019:201908-02
# Command Definitions
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-commands

View File

@ -1,6 +1,6 @@
# Install nodejs and yarn via Chocolatey.
choco install nodejs --version 12.1.0 --no-progress
choco install yarn --version 1.17.3 --no-progress
# choco install nodejs --version 12.1.0 --no-progress
# choco install yarn --version 1.17.3 --no-progress
# Add PATH modifications to the Powershell profile. This is the win equivalent of .bash_profile.
# https://docs.microsoft.com/en-us/previous-versions//bb613488(v=vs.85)