Skip to content

Commit

Permalink
Add .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zieckey committed Mar 18, 2017
1 parent b61d5a9 commit 080fbc7
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

4 changes: 2 additions & 2 deletions benchmark/throughput/asio_from_chenshuo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
evpp
evpp
---


<a href="https://github.com/Qihoo360/evpp/releases"><img src="https://img.shields.io/github/release/Qihoo360/evpp.svg" alt="Github release"></a>
<a href="https://travis-ci.org/Qihoo360/evpp"><img src="https://travis-ci.org/Qihoo360/evpp.svg?branch=master" alt="Build status"></a>

# Introduction [中文](readme_cn.md)

[evpp] is a modern C++ network library for developing high performance network services in TCP/UDP/HTTP protocols.
Expand Down
3 changes: 3 additions & 0 deletions readme_cn.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
evpp
---

<a href="https://github.com/Qihoo360/evpp/releases"><img src="https://img.shields.io/github/release/Qihoo360/evpp.svg" alt="Github release"></a>
<a href="https://travis-ci.org/Qihoo360/evpp"><img src="https://travis-ci.org/Qihoo360/evpp.svg?branch=master" alt="Build status"></a>

# 简介 [English](readme.md)

[evpp]是一个基于[libevent]开发的现代化C++11高性能网络服务器,自带TCP/UDP/HTTP等协议的异步非阻塞式的服务器和客户端库。
Expand Down

0 comments on commit 080fbc7

Please sign in to comment.