From 0bbaeffd62f0dbc22680c4c7c28fac3d51381bdd Mon Sep 17 00:00:00 2001 From: holmes1412 Date: Sat, 27 Mar 2021 20:41:54 +0800 Subject: [PATCH] add .travis.yml --- .travis.yml | 30 ++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 31 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f7fcd66c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +language: cpp +dist: trusty +os: linux +compiler: + - gcc + +jobs: + include: + - env: COMPILER=g++-8 BUILD=Release STANDARD=11 + compiler: gcc + addons: + apt: + update: true + sources: + - ubuntu-toolchain-r-test + packages: + - g++-8 + - cmake +install: + - git clone https://github.com/protocolbuffers/protobuf.git -b v3.12.0 + - cd protobuf + - sh autogen.sh + - ./configure + - make + - sudo make install + - cd .. + - export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH +script: + - make + - make tutorial diff --git a/README.md b/README.md index 5c8b483a..e3ba921b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://github.com/sogou/srpc/blob/master/LICENSE) [![Language](https://img.shields.io/badge/language-c++-red.svg)](https://en.cppreference.com/) [![Platform](https://img.shields.io/badge/platform-linux%20%7C%20macos%20%7C%20windows-lightgrey.svg)](https://img.shields.io/badge/platform-linux%20%7C%20macos%20%7C%20windows-lightgrey.svg) +[![Build Status](https://travis-ci.org/sogou/srpc.svg?branch=master)](https://travis-ci.org/sogou/srpc) [Wiki:SRPC架构介绍](https://github.com/sogou/srpc/wiki)