Commit af913b66 authored by donghuixu's avatar donghuixu

travis-ci support bazel build

parent ed28de70
......@@ -9,6 +9,11 @@ compiler:
env:
- PURPOSE=compile
- PURPOSE=unittest
- PURPOSE=bazel_build
before_install:
- wget --no-clobber https://github.com/bazelbuild/bazel/releases/download/0.8.1/bazel_0.8.1-linux-x86_64.deb
- sudo dpkg -i bazel_0.8.1-linux-x86_64.deb
install:
- sudo apt-get install -qq realpath libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev libgoogle-perftools-dev
......
......@@ -189,6 +189,7 @@ cc_library(
],
copts = COPTS,
linkopts = LINKOPTS,
visibility = ["//visibility:public"],
)
cc_library(
......@@ -210,6 +211,7 @@ cc_library(
],
copts = COPTS,
linkopts = LINKOPTS,
visibility = ["//visibility:public"],
)
cc_library(
......@@ -230,6 +232,7 @@ cc_library(
],
copts = COPTS,
linkopts = LINKOPTS,
visibility = ["//visibility:public"],
)
cc_library(
......@@ -248,6 +251,7 @@ cc_library(
],
copts = COPTS,
linkopts = LINKOPTS,
visibility = ["//visibility:public"],
)
cc_library(
......@@ -268,6 +272,7 @@ cc_library(
],
copts = COPTS,
linkopts = LINKOPTS,
visibility = ["//visibility:public"],
)
brpc_proto_library(
......@@ -281,6 +286,7 @@ brpc_proto_library(
deps = [
"@com_google_protobuf//:cc_wkt_protos"
],
visibility = ["//visibility:public"],
)
cc_library(
......
workspace(name = "brpc")
workspace(name = "com_github_brpc_brpc")
load("//:bazel/workspace.bzl", "brpc_workspace")
......
......@@ -20,6 +20,8 @@ if [ "$PURPOSE" = "compile" ]; then
make -j4 && sh tools/make_all_examples
elif [ "$PURPOSE" = "unittest" ]; then
cd test && sh ./run_tests.sh
elif [ "$PURPOSE" = "bazel_build"]; 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