1 Star 0 Fork 0

杭州朝厚信息科技有限公司 / cppkafka

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
filimonov 提交于 2020-05-24 19:54 . Update .travis.yml
language: cpp
sudo: required
compiler:
- gcc
- clang
env:
- RDKAFKA_VERSION=v0.9.4
- RDKAFKA_VERSION=v0.11.6
os:
- linux
addons:
apt:
packages:
- libboost-dev
- libboost-program-options-dev
- zookeeper
- zookeeperd
before_script:
- KAFKA_VERSION=2.11-2.2.0
- wget https://archive.apache.org/dist/kafka/2.2.0/kafka_$KAFKA_VERSION.tgz
- tar xvzf kafka_$KAFKA_VERSION.tgz
- ./kafka_$KAFKA_VERSION/bin/kafka-server-start.sh ./kafka_$KAFKA_VERSION/config/server.properties > /dev/null 2> /dev/null &
- git clone https://github.com/edenhill/librdkafka.git
- while ! echo "asd" | nc localhost 9092; do sleep 1; done
- ./kafka_$KAFKA_VERSION/bin/kafka-topics.sh --create --zookeeper localhost:2181 --topic cppkafka_test1 --partitions 3 --replication-factor 1
- ./kafka_$KAFKA_VERSION/bin/kafka-topics.sh --create --zookeeper localhost:2181 --topic cppkafka_test2 --partitions 3 --replication-factor 1
script:
- cd librdkafka
- git checkout $RDKAFKA_VERSION
- ./configure --prefix=./install && make libs && make install
- cd ..
- mkdir build && cd build
- cmake .. -DCPPKAFKA_CMAKE_VERBOSE=ON -DRDKAFKA_ROOT=./librdkafka/install -DKAFKA_TEST_INSTANCE=localhost:9092
- make examples
- make tests
- ./tests/cppkafka_tests
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/chohotech/cppkafka.git
git@gitee.com:chohotech/cppkafka.git
chohotech
cppkafka
cppkafka
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891