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.
This commit is contained in:
Allison Karlitskaya 2019-07-04 11:09:07 +02:00 committed by Martin Pitt
parent 5716079402
commit ce6edaabbc
1 changed files with 3 additions and 1 deletions

View File

@ -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