mirror of https://github.com/grpc/grpc-web.git
Merge pull request #216 from stanley-cheung/github-kokoro-webhook
Add more tests to be run by kokoro webhook
This commit is contained in:
commit
712d78461e
|
@ -9,6 +9,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./net/grpc/gateway/docker/echo_server/Dockerfile
|
dockerfile: ./net/grpc/gateway/docker/echo_server/Dockerfile
|
||||||
|
depends_on:
|
||||||
|
- prereqs
|
||||||
image: grpc-web:echo-server
|
image: grpc-web:echo-server
|
||||||
ports:
|
ports:
|
||||||
- "9090:9090"
|
- "9090:9090"
|
||||||
|
@ -25,6 +27,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./net/grpc/gateway/docker/static_assets/Dockerfile
|
dockerfile: ./net/grpc/gateway/docker/static_assets/Dockerfile
|
||||||
|
depends_on:
|
||||||
|
- prereqs
|
||||||
image: grpc-web:static-assets
|
image: grpc-web:static-assets
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
@ -32,6 +36,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./net/grpc/gateway/docker/commonjs_client_example/Dockerfile
|
dockerfile: ./net/grpc/gateway/docker/commonjs_client_example/Dockerfile
|
||||||
|
depends_on:
|
||||||
|
- prereqs
|
||||||
image: grpc-web:commonjs-client-example
|
image: grpc-web:commonjs-client-example
|
||||||
ports:
|
ports:
|
||||||
- "8081:8081"
|
- "8081:8081"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
build_file: "grpc-web/scripts/ubuntu_16_04.sh"
|
build_file: "grpc-web/scripts/kokoro.sh"
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue