diff options
author | Sumant Tambe <sutambe@yahoo.com> | 2018-10-01 15:59:04 -0700 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-10-01 15:59:04 -0700 |
commit | 4b864fd1724f693fbb5bf21cbe4966cf1f1e2277 (patch) | |
tree | 01f7a9e8c5c99cce8d3430791a82e965b4f91b5b /grpc | |
parent | 7e711f80d7dac6f1f4449b05f4942a026e5024e8 (diff) | |
download | flatbuffers-4b864fd1724f693fbb5bf21cbe4966cf1f1e2277.tar.gz flatbuffers-4b864fd1724f693fbb5bf21cbe4966cf1f1e2277.tar.bz2 flatbuffers-4b864fd1724f693fbb5bf21cbe4966cf1f1e2277.zip |
Turn on gRPC tests in travis build (#4955)
Download and build with a known grpc version
Diffstat (limited to 'grpc')
-rwxr-xr-x | grpc/build_grpc.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/grpc/build_grpc.sh b/grpc/build_grpc.sh new file mode 100755 index 00000000..8fb9e1c4 --- /dev/null +++ b/grpc/build_grpc.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +grpc_1_15_1_githash=1a60e6971f428323245a930031ad267bb3142ba4 + +function build_grpc () { + git clone https://github.com/grpc/grpc.git google/grpc + cd google/grpc + git checkout ${grpc_1_15_1_githash} + git submodule update --init + make + make install prefix=`pwd`/install + if [ ! -f ${GRPC_INSTALL_PATH}/lib/libgrpc++_unsecure.so.1 ]; then + ln -s ${GRPC_INSTALL_PATH}/lib/libgrpc++_unsecure.so.6 ${GRPC_INSTALL_PATH}/lib/libgrpc++_unsecure.so.1 + fi + cd ../.. +} + +GRPC_INSTALL_PATH=`pwd`/google/grpc/install +PROTOBUF_DOWNLOAD_PATH=`pwd`/google/grpc/third_party/protobuf + +build_grpc |