From c8f95bbc86ee37a2e1773440f8aa322dfbccb82f Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 15 Sep 2017 23:53:13 +0200 Subject: [PATCH] Properly setting up node. --- kokoro-linux.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/kokoro-linux.sh b/kokoro-linux.sh index 30a79b21..7de5920c 100755 --- a/kokoro-linux.sh +++ b/kokoro-linux.sh @@ -22,6 +22,7 @@ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | b set -e cd $(dirname $0) +# Install gRPC and its submodules. git submodule update --init git submodule foreach --recursive git submodule update --init @@ -29,14 +30,17 @@ node_versions="6 7 8" # TODO(mlumish): Add electron tests -# Install dependencies and link packages together -npm install -./node_modules/.bin/gulp setup - for version in ${node_versions} do + # Install and setup node for the version we want. nvm install $version - # Rebuild libraries and run tests + nvm use $version + + # Install dependencies and link packages together. + npm install + ./node_modules/.bin/gulp setup + + # Rebuild libraries and run tests. ./node_modules/.bin/gulp native.test || FAILED="true" done