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
7d0c67b8
Commit
7d0c67b8
authored
May 24, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert build_in_travis_ci.sh
parent
7c4b8346
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
build_in_travis_ci.sh
build_in_travis_ci.sh
+21
-5
No files found.
build_in_travis_ci.sh
View file @
7d0c67b8
...
...
@@ -25,19 +25,35 @@ EXTRA_BUILD_OPTS=""
if
[
"
$USE_MESALINK
"
=
"yes"
]
;
then
EXTRA_BUILD_OPTS
=
"
$EXTRA_BUILD_OPTS
--with-mesalink"
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
$EXTRA_BUILD_OPTS
;
then
echo
"Fail to configure brpc"
exit
1
fi
if
[
"
$PURPOSE
"
=
"compile"
]
;
then
make
-j4
&&
sh tools/make_all_examples
elif
[
"
$PURPOSE
"
=
"unittest"
]
;
then
cd test
make
-j4
&&
sh ./run_tests.sh
elif
[
"
$PURPOSE
"
=
"compile-with-cmake"
]
;
then
rm
-rf
bld
&&
mkdir
bld
&&
cd
bld
&&
cmake ..
&&
make
-j4
# pass the unittest from default Makefile to accelerate build process
:
else
echo
"Unknown purpose=
\"
$PURPOSE
\"
"
fi
echo
"start building by cmake"
rm
-rf
bld
&&
mkdir
bld
&&
cd
bld
if
[
"
$PURPOSE
"
=
"compile"
]
;
then
if
!
cmake ..
;
then
echo
"Fail to generate Makefile by cmake"
exit
1
fi
make
-j4
elif
[
"
$PURPOSE
"
=
"unittest"
]
;
then
if
!
cmake
-DBUILD_UNIT_TESTS
=
ON ..
;
then
echo
"Fail to generate Makefile by cmake"
exit
1
fi
make
-j4
&&
cd test
&&
sh ./run_tests.sh
&&
cd
../
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