workaround intermittent nodejs.org corruptions (#3766)

This commit is contained in:
Alex Lam S.L
2020-04-07 01:40:38 +01:00
committed by GitHub
parent 94bc221669
commit 41eb4f1725
2 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ jobs:
shell: bash
run: |
git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
while !(. ~/.nvs/nvs.sh add $NODE); do
while ! timeout 60 bash -c '. ~/.nvs/nvs.sh add $NODE && nvs use $NODE'; do
cd ~/.nvs
git clean -xdf
cd -
@@ -35,5 +35,5 @@ jobs:
npm config set save false
npm config set update-notifier false
npm --version
while !(npm install); do echo "'npm install' failed - retrying..."; done;
while !(npm install); do echo "'npm install' failed - retrying..."; done
node test/$TYPE