diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..38b19d21b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,43 @@ +dist: trusty +language: cpp +compiler: + - g++ + +branches: + only: + - master + - dev + +env: + global: + - CI_HOME=`pwd` + + +install: + - sudo apt-get install libboost-all-dev -y + - sudo apt-get install libevent-dev -y + - sudo apt-get install libgflags-dev -y + - sudo apt-get install libgtest-dev -y + - sudo apt-get install libgoogle-glog-dev -y + +script: + - g++ --version + - cmake --version + - cd $CI_HOME + - mkdir build && cd build + - cmake -DCMAKE_BUILD_TYPE=debug .. + - make -j2 + - cd .. + - mkdir build-release && cd build-release + - cmake -DCMAKE_BUILD_TYPE=release .. + - make -j2 + +after_success: + - cd $CI_HOME + - pwd + - cd build/bin + - ./evpp_unittest + - cd ../../build-release/bin + - ./evpp_unittest +# - coveralls --exclude dependencies --exclude test --exclude include/rpc/msgpack --exclude include/rcp/msgpack.hpp --gcov /usr/bin/gcov-5 + diff --git a/benchmark/throughput/asio_from_chenshuo/CMakeLists.txt b/benchmark/throughput/asio_from_chenshuo/CMakeLists.txt index 49191e3d5..eca6824f3 100644 --- a/benchmark/throughput/asio_from_chenshuo/CMakeLists.txt +++ b/benchmark/throughput/asio_from_chenshuo/CMakeLists.txt @@ -1,5 +1,5 @@ add_executable(benchmark_tcp_asio_client client.cpp) -target_link_libraries(benchmark_tcp_asio_client boost_system boost_thread) +target_link_libraries(benchmark_tcp_asio_client boost_system boost_thread pthread) add_executable(benchmark_tcp_asio_server server.cpp) -target_link_libraries(benchmark_tcp_asio_server boost_system boost_thread) +target_link_libraries(benchmark_tcp_asio_server boost_system boost_thread pthread) diff --git a/readme.md b/readme.md index 3c76ce1c3..d551728fb 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,10 @@ -evpp +evpp --- + +Github release +Build status + # Introduction [中文](readme_cn.md) [evpp] is a modern C++ network library for developing high performance network services in TCP/UDP/HTTP protocols. diff --git a/readme_cn.md b/readme_cn.md index fb813405c..5844ccedb 100644 --- a/readme_cn.md +++ b/readme_cn.md @@ -1,6 +1,9 @@ evpp --- +Github release +Build status + # 简介 [English](readme.md) [evpp]是一个基于[libevent]开发的现代化C++11高性能网络服务器,自带TCP/UDP/HTTP等协议的异步非阻塞式的服务器和客户端库。