2014-01-20 16:06:13 -05:00
|
|
|
#!/bin/bash
|
2014-03-12 16:50:11 -04:00
|
|
|
set -e
|
2014-04-03 16:18:50 -04:00
|
|
|
cd .. # /bootstrap/
|
2014-06-19 13:47:55 -04:00
|
|
|
cp test-infra/npm-shrinkwrap.json npm-shrinkwrap.json
|
2014-08-14 20:59:55 -04:00
|
|
|
# npm is flaky, so try multiple times
|
|
|
|
MAXTRIES=3
|
|
|
|
TRIES=1
|
|
|
|
while ! npm install; do
|
|
|
|
if [ $TRIES -ge $MAXTRIES ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
TRIES=$(($TRIES + 1))
|
|
|
|
echo "Retrying npm install (Try $TRIES of $MAXTRIES)..."
|
|
|
|
done
|
2014-01-20 16:06:13 -05:00
|
|
|
rm npm-shrinkwrap.json
|