Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
pulsar
提交
120a3c45
pulsar
项目概览
apache
/
pulsar
通知
129
Star
40
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
pulsar
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
120a3c45
编写于
6月 19, 2017
作者:
M
Matteo Merli
提交者:
GitHub
6月 19, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed travis build script spaces (#493)
上级
cd8a7584
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
4 deletion
+19
-4
.travis.yml
.travis.yml
+1
-2
pulsar-client-cpp/travis-build.sh
pulsar-client-cpp/travis-build.sh
+18
-2
未找到文件。
.travis.yml
浏览文件 @
120a3c45
...
...
@@ -25,8 +25,7 @@ install:
script
:
# Build Java and C++
-
mvn license:check test && \
sudo bash -x $TRAVIS_BUILD_DIR/pulsar-client-cpp/travis-build.sh $HOME/pulsar-dep $TRAVIS_BUILD_DIR compile
-
mvn license:check test && sudo bash -x $TRAVIS_BUILD_DIR/pulsar-client-cpp/travis-build.sh $HOME/pulsar-dep $TRAVIS_BUILD_DIR compile
deploy
:
-
...
...
pulsar-client-cpp/travis-build.sh
浏览文件 @
120a3c45
...
...
@@ -73,14 +73,30 @@ fi
if
[
"
$3
"
=
"all"
-o
"
$3
"
=
"compile"
]
;
then
export
PATH
=
$PATH
:
$1
/
# Compile and run unit tests
exec_cmd
"pushd
$2
/pulsar-client-cpp && CC=gcc-4.4 CXX=g++-4.4 cmake . && make && popd"
;
pushd
$2
/pulsar-client-cpp
CC
=
gcc-4.4
CXX
=
g++-4.4 cmake
.
&&
make
if
[
$?
-ne
0
]
;
then
echo
"Failed to compile CPP client library"
exit
1
fi
popd
PULSAR_STANDALONE_CONF
=
$2
/pulsar-client-cpp/tests/standalone.conf
$2
/bin/pulsar standalone &
standalone_pid
=
$!
;
PULSAR_STANDALONE_CONF
=
$2
/pulsar-client-cpp/tests/authentication.conf
$2
/bin/pulsar standalone
--zookeeper-port
2191
--bookkeeper-port
3191
--zookeeper-dir
data2/standalone/zookeeper
--bookkeeper-dir
data2/standalone/zookeeper &
auth_pid
=
$!
;
sleep
10
PULSAR_CLIENT_CONF
=
$2
/pulsar-client-cpp/tests/client.conf
$2
/bin/pulsar-admin clusters create
--url
http://localhost:9765/
--url-secure
https://localhost:9766/
--broker-url
pulsar://localhost:9885/
--broker-url-secure
pulsar+ssl://localhost:9886/ cluster
exec_cmd
"sleep 5 && pushd
$2
/pulsar-client-cpp/tests && ./main && popd"
;
sleep
5
pushd
$2
/pulsar-client-cpp/tests
./main
RES
=
$?
popd
exec_cmd
"kill -SIGTERM
$standalone_pid
"
;
exec_cmd
"kill -SIGTERM
$auth_pid
"
;
if
[
$RES
-ne
0
]
;
then
echo
"Unit tests failed"
exit
1
fi
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录