mirror of https://github.com/grpc/grpc-node.git
Some test script fixes
This commit is contained in:
parent
3ed2e806fd
commit
fc51f0ea48
11
run-tests.sh
11
run-tests.sh
|
@ -39,7 +39,6 @@ npm install --unsafe-perm
|
|||
|
||||
mkdir -p reports
|
||||
export JOBS=8
|
||||
export JUNIT_REPORT_PATH="reports/node$version/"
|
||||
export JUNIT_REPORT_STACK=1
|
||||
|
||||
OS=$(uname)
|
||||
|
@ -57,6 +56,8 @@ fi
|
|||
|
||||
# TODO(mlumish): Add electron tests
|
||||
|
||||
FAILED="false"
|
||||
|
||||
for version in ${node_versions}
|
||||
do
|
||||
# Install and setup node for the version we want.
|
||||
|
@ -66,6 +67,8 @@ do
|
|||
nvm use $version
|
||||
set -ex
|
||||
|
||||
export JUNIT_REPORT_PATH="reports/node$version/"
|
||||
|
||||
# https://github.com/mapbox/node-pre-gyp/issues/362
|
||||
npm install -g node-gyp
|
||||
|
||||
|
@ -87,12 +90,12 @@ set -ex
|
|||
|
||||
node merge_kokoro_logs.js
|
||||
|
||||
if [ "$FAILED" == "" ]
|
||||
if [ "$FAILED" == "true" ]
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
if [ "$OS" == "Linux" ]
|
||||
then
|
||||
npm run coverage
|
||||
fi
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue