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
412143ed
Commit
412143ed
authored
Oct 24, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try build matrix in .travis.yml
parent
7fd78cc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
5 deletions
+36
-5
.travis.yml
.travis.yml
+11
-5
build_in_travis_ci.sh
build_in_travis_ci.sh
+25
-0
No files found.
.travis.yml
View file @
412143ed
language
:
cpp
compiler
:
-
clang
-
gcc
env
:
-
PURPOSE=compile
-
PURPOSE=unittest
sudo
:
required
install
:
-
sudo apt-get install -qq realpath libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev libgoogle-perftools-dev
-
sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv libgtest* /usr/lib/ && cd -
-
sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --nodebugsymbols
-
make -j4
-
sudo apt-get install -qq realpath libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev libgoogle-perftools-dev
-
sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv libgtest* /usr/lib/ && cd -
script
:
-
cd test && sh ./run_tests
.sh
-
sh build_in_travis_ci
.sh
build_in_travis_ci.sh
0 → 100644
View file @
412143ed
if
[
-z
"
$PURPOSE
"
]
;
then
echo
"PURPOSE must be set"
exit
1
fi
if
[
-z
"
$CXX
"
]
;
then
echo
"CXX must be set"
exit
1
fi
if
[
-z
"
$CC
"
]
;
then
echo
"CC must be set"
exit
1
fi
echo
"build combination: PURPOSE=
$PURPOSE
CXX=
$CXX
CC=
$CC
"
# 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"
exit
1
fi
if
[
"
$PURPOSE
"
=
"compile"
]
;
then
make
-j4
elif
[
"
$PURPOSE
"
=
"unittest"
]
;
then
cd test
&&
sh ./run_tests.sh
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