From a2a79865aa23d4527aa3852f3278eab7db7233e2 Mon Sep 17 00:00:00 2001 From: Hayk Martirosyan Date: Mon, 13 Jun 2016 23:08:57 -0700 Subject: [PATCH] make-ci script that runs tests --- README.md | 3 ++- make-ci.sh | 22 ++++++++++++++++++++-- make.sh | 1 + 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e97c331..596c3d8 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ redox ====== Modern, asynchronous, and wicked fast C++11 client for Redis -[![Build Status](https://travis-ci.org/hmartiro/redox.svg?branch=feature%2Ftravis-ci)](https://travis-ci.org/hmartiro/redox) +[![Build Status](https://travis-ci.org/hmartiro/redox.svg?branch=feature%2Ftravis-ci)] +(https://travis-ci.org/hmartiro/redox) Redox is a C++ interface to the [Redis](http://redis.io/) key-value store that makes it easy to write applications diff --git a/make-ci.sh b/make-ci.sh index fb29057..a962851 100755 --- a/make-ci.sh +++ b/make-ci.sh @@ -1,6 +1,24 @@ #!/usr/bin/env bash -set -e -sudo apt-get install -y libhiredis-dev libev-dev +# Build script for continuous integration +set -ev +env | sort + +# Install packages +sudo apt-get update +sudo apt-get install -y libhiredis-dev libev-dev libgtest-dev redis-server + +# Make gtest +git clone https://github.com/google/googletest +cd googletest +mkdir -p build +cd build +cmake .. +make +sudo mv googlemock/gtest/libg* /usr/local/lib/ +cd ../.. +rm -rf googletest + +# Make redox mkdir -p build cd build cmake -Dexamples=ON -Dlib=ON -Dstatic_lib=ON -Dtests=ON .. diff --git a/make.sh b/make.sh index febe16a..d88d0ed 100755 --- a/make.sh +++ b/make.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash mkdir -p build && cd build && cmake .. && -- libgit2 0.21.4