You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/01/09 12:06:04 UTC

[GitHub] duhenglucky closed pull request #25: Enable Travis CI

duhenglucky closed pull request #25: Enable Travis CI 
URL: https://github.com/apache/rocketmq-client-python/pull/25
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..cfc882e
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,26 @@
+language: cpp
+sudo: required
+dist: trusty
+
+before_install:
+- sudo apt-get update
+- sudo apt-get install -y git gcc-4.8 g++-4.8 autoconf cmake libtool wget unzip libbz2-dev zlib1g-dev
+- sudo apt-get install -y python-dev
+
+install:
+- sudo sh install_boostpython.sh >> tmp_install_boostpython.txt
+- mkdir rocketmqlib
+- cd rocketmqlib
+- wget https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.2.0/RHEL7.x/librocketmq.tar.gz
+- tar -xzf librocketmq.tar.gz
+- sudo cp librocketmq.so librocketmq.a /usr/local/lib/
+- sudo cp -r rocketmq /usr/local/include/
+- cd ../
+
+before_script:
+- export LD_LIBRARY_PATH=/usr/local/lib
+
+script:
+- mkdir build && cd build
+- cmake ../ -DBoost_USE_STATIC_LIBS=OFF -DROCKETMQ_USE_STATIC_LIBS=OFF
+- make
diff --git a/README.md b/README.md
index ca1409e..f52295c 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
-## RocketMQ Client Python [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
-
+## RocketMQ Client Python
+[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
+[![TravisCI](https://travis-ci.org/apache/rocketmq-client-python.svg)](https://travis-ci.org/apache/rocketmq-client-python)
 * RocketMQ Python client is developed on top of [rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp), which has been proven robust and widely adopted within Alibaba Group by many business units for more than three years.
 
 ----------


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services