Commit 03c7004c authored by donghuixu's avatar donghuixu

fix bazel build travis_ci script

parent ce04d18a
......@@ -11,6 +11,12 @@ if [ -z "$CC" ]; then
exit 1
fi
echo "build combination: PURPOSE=$PURPOSE CXX=$CXX CC=$CC"
if [ "$PURPOSE" = "compile-with-bazel" ]; then
bazel build -j8 --copt -DHAVE_ZLIB=1 //...
exit 0
fi
# The default env in travis-ci is Ubuntu.
if ! sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --nodebugsymbols --cxx=$CXX --cc=$CC; then
echo "Fail to configure brpc"
......@@ -20,8 +26,6 @@ if [ "$PURPOSE" = "compile" ]; then
make -j4 && sh tools/make_all_examples
elif [ "$PURPOSE" = "unittest" ]; then
cd test && sh ./run_tests.sh
elif [ "$PURPOSE" = "compile-with-bazel" ]; then
bazel build --copt -DHAVE_ZLIB=1 //...
else
echo "Unknown purpose=\"$PURPOSE\""
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment