Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
4b864fd1
Commit
4b864fd1
authored
Oct 01, 2018
by
Sumant Tambe
Committed by
Wouter van Oortmerssen
Oct 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn on gRPC tests in travis build (#4955)
Download and build with a known grpc version
parent
7e711f80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
.travis.yml
.travis.yml
+7
-2
build_grpc.sh
grpc/build_grpc.sh
+21
-0
No files found.
.travis.yml
View file @
4b864fd1
...
...
@@ -72,7 +72,9 @@ matrix:
-
if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc; fi
script
:
-
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test
-
bash grpc/build_grpc.sh
-
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DFLATBUFFERS_BUILD_GRPCTEST=ON -DGRPC_INSTALL_PATH=$TRAVIS_BUILD_DIR/google/grpc/install -DPROTOBUF_DOWNLOAD_PATH=$TRAVIS_BUILD_DIR/google/grpc/third_party/protobuf . && make
-
LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/google/grpc/install/lib make test ARGS=-V
-
if [ "$CONAN" == "true" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo pip install conan && conan create . google/testing -s build_type=$BUILD_TYPE -tf conan/test_package; fi
-
language
:
cpp
...
...
@@ -83,7 +85,10 @@ matrix:
-
BUILD_TYPE=Debug
-
BUILD_TYPE=Release
script
:
-
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test
-
bash grpc/build_grpc.sh
-
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DFLATBUFFERS_BUILD_GRPCTEST=ON -DGRPC_INSTALL_PATH=$TRAVIS_BUILD_DIR/google/grpc/install -DPROTOBUF_DOWNLOAD_PATH=$TRAVIS_BUILD_DIR/google/grpc/third_party/protobuf . && make
-
./flattests
-
DYLD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/google/grpc/install/lib ./grpctest
-
<<
:
*conan-linux
env
:
CONAN_GCC_VERSIONS=4.9 CONAN_DOCKER_IMAGE=lasote/conangcc49
...
...
grpc/build_grpc.sh
0 → 100755
View file @
4b864fd1
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment