From 8928aa5219b09090c623dcf0801d761b3a1b7260 Mon Sep 17 00:00:00 2001 From: Ro Savage Date: Mon, 29 May 2017 14:06:17 +1200 Subject: [PATCH] Install latest yarn on AppVeyor to avoid windows crashing bug in yarn --- tasks/e2e-installs.sh | 5 ++++- tasks/e2e-kitchensink.sh | 5 ++++- tasks/e2e-simple.sh | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/tasks/e2e-installs.sh b/tasks/e2e-installs.sh index 064a4e30f0a..0bdbbad6b56 100755 --- a/tasks/e2e-installs.sh +++ b/tasks/e2e-installs.sh @@ -86,7 +86,10 @@ root_path=$PWD # Clear cache to avoid issues with incorrect packages being used if hash yarnpkg 2>/dev/null then - yarn cache clean + # AppVeyor uses old version on yarn. + # Once updated to 0.24.3 or above install can be removed. + npm install -g yarn@latest + yarnpkg cache clean fi if hash npm 2>/dev/null diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index 157064a50fb..96b249c45c0 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -69,7 +69,10 @@ root_path=$PWD # Clear cache to avoid issues with incorrect packages being used if hash yarnpkg 2>/dev/null then - yarn cache clean + # AppVeyor uses old version on yarn. + # Once updated to 0.24.3 or above install can be removed. + npm install -g yarn@latest + yarnpkg cache clean fi if hash npm 2>/dev/null diff --git a/tasks/e2e-simple.sh b/tasks/e2e-simple.sh index 08e359517ed..abe3ce55878 100755 --- a/tasks/e2e-simple.sh +++ b/tasks/e2e-simple.sh @@ -68,7 +68,10 @@ root_path=$PWD # Clear cache to avoid issues with incorrect packages being used if hash yarnpkg 2>/dev/null then - yarn cache clean + # AppVeyor uses old version on yarn. + # Once updated to 0.24.3 or above install can be removed. + npm install -g yarn@latest + yarnpkg cache clean fi if hash npm 2>/dev/null