From 2d9e7f9ebd5f3b271b8abca3b079f3f31988504c Mon Sep 17 00:00:00 2001 From: Eric Gribkoff Date: Thu, 22 Mar 2018 13:11:04 -0700 Subject: Add gRPC C++ on Android Kokoro build --- tools/internal_ci/linux/grpc_android.cfg | 19 +++++++++++++++++++ tools/internal_ci/linux/grpc_android.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 tools/internal_ci/linux/grpc_android.cfg create mode 100755 tools/internal_ci/linux/grpc_android.sh (limited to 'tools/internal_ci') diff --git a/tools/internal_ci/linux/grpc_android.cfg b/tools/internal_ci/linux/grpc_android.cfg new file mode 100644 index 0000000000..fb60777a12 --- /dev/null +++ b/tools/internal_ci/linux/grpc_android.cfg @@ -0,0 +1,19 @@ +# Copyright 2018 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 the internal CI (in protobuf text format) + +# Location of the continuous shell script in repository. +build_file: "grpc/tools/internal_ci/linux/grpc_android.sh" +timeout_mins: 60 diff --git a/tools/internal_ci/linux/grpc_android.sh b/tools/internal_ci/linux/grpc_android.sh new file mode 100755 index 0000000000..1dd74b43b6 --- /dev/null +++ b/tools/internal_ci/linux/grpc_android.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +# Copyright 2018 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. + +set -ex + +# change to grpc repo root +cd $(dirname $0)/../../.. + +git submodule update --init + +# TODO(ericgribkoff) Remove when this commit (already in master) is included in +# next protobuf release +cd third_party/protobuf +git cherry-pick 7daa320065f3bea2b54bf983337d1724f153422d -m 1 + +cd ../../examples/android/helloworld +./gradlew build -- cgit v1.2.3