mirror of
https://github.com/maputnik/editor.git
synced 2026-02-10 06:30:00 +00:00
Update only if wanted version is not available
This commit is contained in:
10
appveyor.yml
10
appveyor.yml
@@ -9,8 +9,14 @@ platform:
|
||||
- x86
|
||||
- x64
|
||||
install:
|
||||
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
|
||||
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:PLATFORM
|
||||
# https://github.com/appveyor/ci/issues/2921#issuecomment-501016533
|
||||
- ps: |
|
||||
try {
|
||||
Install-Product node $env:nodejs_version $env:platform
|
||||
} catch {
|
||||
echo "Unable to install node $env:nodejs_version, trying update..."
|
||||
Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
|
||||
}
|
||||
- md public
|
||||
- npm --vs2015 install --global windows-build-tools
|
||||
- npm install
|
||||
|
||||
Reference in New Issue
Block a user