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