Merge pull request #216 from stanley-cheung/github-kokoro-webhook

Add more tests to be run by kokoro webhook
This commit is contained in:
Stanley Cheung 2018-08-02 21:38:58 -07:00 committed by GitHub
commit 712d78461e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 1 deletions

View File

@ -9,6 +9,8 @@ services:
build:
context: ./
dockerfile: ./net/grpc/gateway/docker/echo_server/Dockerfile
depends_on:
- prereqs
image: grpc-web:echo-server
ports:
- "9090:9090"
@ -25,6 +27,8 @@ services:
build:
context: ./
dockerfile: ./net/grpc/gateway/docker/static_assets/Dockerfile
depends_on:
- prereqs
image: grpc-web:static-assets
ports:
- "80:80"
@ -32,6 +36,8 @@ services:
build:
context: ./
dockerfile: ./net/grpc/gateway/docker/commonjs_client_example/Dockerfile
depends_on:
- prereqs
image: grpc-web:commonjs-client-example
ports:
- "8081:8081"

View File

@ -1 +1 @@
build_file: "grpc-web/scripts/ubuntu_16_04.sh"
build_file: "grpc-web/scripts/kokoro.sh"

31
scripts/kokoro.sh Normal file
View File

@ -0,0 +1,31 @@
#!/bin/bash
# Copyright 2018 Google LLC
#
# 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
#
# https://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.
set -ex
cd "$(dirname "$0")"
./init_submodules.sh
cd ..
make clean
docker build -t grpc-web:ubuntu_16_04 \
-f net/grpc/gateway/docker/ubuntu_16_04/Dockerfile .
docker-compose build
bazel test javascript/net/grpc/web/...
cd packages/grpc-web && \
npm install && \
npm run build