Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
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
brpc
Commits
af913b66
Commit
af913b66
authored
Dec 16, 2017
by
donghuixu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis-ci support bazel build
parent
ed28de70
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
.travis.yml
.travis.yml
+5
-0
BUILD
BUILD
+6
-0
WORKSPACE
WORKSPACE
+1
-1
build_in_travis_ci.sh
build_in_travis_ci.sh
+2
-0
No files found.
.travis.yml
View file @
af913b66
...
...
@@ -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
...
...
BUILD
View file @
af913b66
...
...
@@ -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
View file @
af913b66
workspace(name = "brpc")
workspace(name = "
com_github_brpc_
brpc")
load("//:bazel/workspace.bzl", "brpc_workspace")
...
...
build_in_travis_ci.sh
View file @
af913b66
...
...
@@ -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
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