mirror of https://github.com/grpc/grpc-node.git
Point to report files in kokoro config files
This commit is contained in:
parent
b2583e561a
commit
14eafa2b00
11
run-tests.sh
11
run-tests.sh
|
@ -29,11 +29,12 @@ if [ ! -n "$node_versions" ] ; then
|
|||
node_versions="4 5 6 7 8"
|
||||
fi
|
||||
|
||||
mkdir -p reports
|
||||
|
||||
# TODO(mlumish): Add electron tests
|
||||
|
||||
for version in ${node_versions}
|
||||
do
|
||||
cd $ROOT
|
||||
# Install and setup node for the version we want.
|
||||
set +ex
|
||||
echo "Switching to node version $version"
|
||||
|
@ -41,16 +42,14 @@ do
|
|||
nvm use $version
|
||||
set -ex
|
||||
|
||||
mkdir p "reports/node$version"
|
||||
|
||||
# Install dependencies and link packages together.
|
||||
npm install
|
||||
./node_modules/.bin/gulp setup
|
||||
|
||||
# Rebuild libraries and run tests.
|
||||
JUNIT_REPORT_PATH="node$version/" JUNIT_REPORT_STACK=1 ./node_modules/.bin/gulp native.test || FAILED="true"
|
||||
cd node$version
|
||||
for file in * ; do
|
||||
mv $f $(echo $f | sed 's/\(.*\)\.xml/\1_sponge_log.xml/')
|
||||
done
|
||||
JUNIT_REPORT_PATH="reports/node$version/" JUNIT_REPORT_STACK=1 ./node_modules/.bin/gulp native.test || FAILED="true"
|
||||
done
|
||||
|
||||
if [ "$FAILED" != "" ]
|
||||
|
|
|
@ -17,3 +17,8 @@
|
|||
# Location of the continuous shell script in repository.
|
||||
build_file: "grpc-node/kokoro.sh"
|
||||
timeout_mins: 60
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "github/grpc-node/reports/**"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,3 +17,8 @@
|
|||
# Location of the continuous shell script in repository.
|
||||
build_file: "grpc-node/kokoro.sh"
|
||||
timeout_mins: 60
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "github/grpc-node/reports/**"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue