From 6738c971fc5af547f301227bbb9ce7f13e46ea27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20K=C3=BCsel?= Date: Fri, 14 Jun 2019 18:59:06 +0200 Subject: [PATCH] update CI config --- .travis.yml | 2 -- appveyor.yml | 11 ++++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3cecb56..918fbda 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ dist: trusty -sudo: false language: node_js @@ -8,7 +7,6 @@ node_js: - "10" - "8" - "6" - - "4" os: - linux diff --git a/appveyor.yml b/appveyor.yml index d4391bf..9382700 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,7 +8,6 @@ environment: - nodejs_version: "10" - nodejs_version: "8" - nodejs_version: "6" - - nodejs_version: "4" # Build on both platforms platform: @@ -17,8 +16,14 @@ platform: # Install scripts. (runs after repo cloning) install: - # Get the latest version of $env:nodejs_version - - ps: Install-Product node $env:nodejs_version $env:platform + # Select node version $env:nodejs_version + - 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 + } # Output useful info for debugging. - node --version - npm --version