Commit a2a79865aa23d4527aa3852f3278eab7db7233e2
1 parent
6c15f811
make-ci script that runs tests
Showing
3 changed files
with
23 additions
and
3 deletions
README.md
| @@ -2,7 +2,8 @@ redox | @@ -2,7 +2,8 @@ redox | ||
| 2 | ====== | 2 | ====== |
| 3 | 3 | ||
| 4 | Modern, asynchronous, and wicked fast C++11 client for Redis | 4 | Modern, asynchronous, and wicked fast C++11 client for Redis |
| 5 | -[](https://travis-ci.org/hmartiro/redox) | 5 | +[] |
| 6 | +(https://travis-ci.org/hmartiro/redox) | ||
| 6 | 7 | ||
| 7 | Redox is a C++ interface to the | 8 | Redox is a C++ interface to the |
| 8 | [Redis](http://redis.io/) key-value store that makes it easy to write applications | 9 | [Redis](http://redis.io/) key-value store that makes it easy to write applications |
make-ci.sh
| 1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
| 2 | -set -e | ||
| 3 | -sudo apt-get install -y libhiredis-dev libev-dev | 2 | +# Build script for continuous integration |
| 3 | +set -ev | ||
| 4 | +env | sort | ||
| 5 | + | ||
| 6 | +# Install packages | ||
| 7 | +sudo apt-get update | ||
| 8 | +sudo apt-get install -y libhiredis-dev libev-dev libgtest-dev redis-server | ||
| 9 | + | ||
| 10 | +# Make gtest | ||
| 11 | +git clone https://github.com/google/googletest | ||
| 12 | +cd googletest | ||
| 13 | +mkdir -p build | ||
| 14 | +cd build | ||
| 15 | +cmake .. | ||
| 16 | +make | ||
| 17 | +sudo mv googlemock/gtest/libg* /usr/local/lib/ | ||
| 18 | +cd ../.. | ||
| 19 | +rm -rf googletest | ||
| 20 | + | ||
| 21 | +# Make redox | ||
| 4 | mkdir -p build | 22 | mkdir -p build |
| 5 | cd build | 23 | cd build |
| 6 | cmake -Dexamples=ON -Dlib=ON -Dstatic_lib=ON -Dtests=ON .. | 24 | cmake -Dexamples=ON -Dlib=ON -Dstatic_lib=ON -Dtests=ON .. |