From d06ab89a705b2e359ceec4dcc8c316a9d2179c87 Mon Sep 17 00:00:00 2001 From: Matt Kwong Date: Thu, 14 Sep 2017 17:54:56 -0700 Subject: [PATCH] Add Kokoro config for Linux/MacOS --- kokoro-linux.sh | 7 ++++++- test/kokoro/linux.cfg | 19 +++++++++++++++++++ test/kokoro/macos.cfg | 19 +++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 test/kokoro/linux.cfg create mode 100644 test/kokoro/macos.cfg diff --git a/kokoro-linux.sh b/kokoro-linux.sh index 18b5218e..3053da4b 100755 --- a/kokoro-linux.sh +++ b/kokoro-linux.sh @@ -31,5 +31,10 @@ for version in ${node_versions[@]} do nvm install $version # Rebuild libraries and run tests - ./node_modules/.bin/gulp native.test + ./node_modules/.bin/gulp native.test || FAILED="true" done + +if [ "$FAILED" != "" ] +then + exit 1 +fi diff --git a/test/kokoro/linux.cfg b/test/kokoro/linux.cfg new file mode 100644 index 00000000..6cd2fca6 --- /dev/null +++ b/test/kokoro/linux.cfg @@ -0,0 +1,19 @@ +# Copyright 2017 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Config file for Kokoro (in protobuf text format) + +# Location of the continuous shell script in repository. +build_file: "grpc-node/kokoro-linux.sh" +timeout_mins: 60 diff --git a/test/kokoro/macos.cfg b/test/kokoro/macos.cfg new file mode 100644 index 00000000..6cd2fca6 --- /dev/null +++ b/test/kokoro/macos.cfg @@ -0,0 +1,19 @@ +# Copyright 2017 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Config file for Kokoro (in protobuf text format) + +# Location of the continuous shell script in repository. +build_file: "grpc-node/kokoro-linux.sh" +timeout_mins: 60