Skip to content

Commit

Permalink
Update appveyor.yml
Browse files Browse the repository at this point in the history
Future-proof install of Node versions
  • Loading branch information
plroebuck committed Jun 12, 2019
1 parent 5452577 commit 84ab524
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ install:
## Node-related installs
- ps: Add-AppveyorMessage "Installing Node..."
- set PATH=%APPDATA%\npm;C:\MinGW\bin;%PATH%
## :NOTE: Use slower `Update-NodeJSInstallation` until pre-installed Node-12 image available
#- ps: Install-Product node $env:nodejs_version $env:platform
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
## Prefer pre-installed Node versions, with fallback to manual update
- ps: |
try {
Install-Product node $env:nodejs_version $env:platform
} catch {
Add-AppveyorMessage " install failed - attempting manual update..."
Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
}
- ps: Add-AppveyorMessage "Installing npm..."
- npm install -g npm
## Mocha-related package installs
Expand Down

0 comments on commit 84ab524

Please sign in to comment.