File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ retry() {
6
6
" ${@ } " || " ${@ } " || " ${@ } " || return 1
7
7
}
8
8
9
+ npm_install () {
10
+ timeout 60 npm install " ${@ } "
11
+ }
12
+
9
13
set -eox pipefail
10
14
cd $( dirname $0 ) /..
11
15
@@ -16,9 +20,9 @@ NODEDIR=$(dirname $(dirname $(which node)))
16
20
# contains unreleased fixes that allow the native component to be compiled
17
21
# with Node's V8 canary build.
18
22
[ -z $NVM_NODEJS_ORG_MIRROR ] \
19
- || retry npm install https://github.com/nodejs/nan.git
23
+ || retry npm_install https://github.com/nodejs/nan.git
20
24
21
- retry npm install --nodedir=" $NODEDIR " \
25
+ retry npm_install --nodedir=" $NODEDIR " \
22
26
${BINARY_HOST: +--pprof_binary_host_mirror=$BINARY_HOST } > /dev/null
23
27
24
28
npm run compile
@@ -30,8 +34,8 @@ TESTDIR=$(mktemp -d)
30
34
cp -r " $PWD /system-test/busybench" " $TESTDIR "
31
35
cd " $TESTDIR /busybench"
32
36
33
- retry npm install pify @types/pify typescript gts @types/node > /dev/null
34
- retry npm install --nodedir=" $NODEDIR " \
37
+ retry npm_install pify @types/pify typescript gts @types/node > /dev/null
38
+ retry npm_install --nodedir=" $NODEDIR " \
35
39
${BINARY_HOST: +--pprof_binary_host_mirror=$BINARY_HOST } \
36
40
" $PROFILER " > /dev/null
37
41
You can’t perform that action at this time.
0 commit comments