From ce6edaabbc33f1ce887153266cf86f8427a78530 Mon Sep 17 00:00:00 2001 From: Allison Karlitskaya Date: Thu, 4 Jul 2019 11:09:07 +0200 Subject: [PATCH] autogen.sh: give `npm install` a few tries `npm install` is sometimes flaky, which can ruin an entire tests run on semaphore. If it fails, try a couple more times. --- autogen.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index fb2702a90..27175669e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -43,7 +43,9 @@ fi # Development dependencies: See node_modules/README npm prune -npm install # see package.json + +# npm install is flaky, so give it a few tries +npm install || { sleep 30; npm install; } || { sleep 30; npm install; } find node_modules -name test | xargs rm -rf