forked from ifwe/twemproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis.sh
29 lines (22 loc) · 777 Bytes
/
travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#file : travis.sh
#author : ning
#date : 2014-05-10 16:54:43
#install deps if we are in travis
if [ -n "$TRAVIS" ]; then
sudo apt-get install socat
#python libs
sudo pip install redis
sudo pip install nose
sudo pip install git+https://github.com/andymccurdy/redis-py.git@2.10.3
sudo pip install git+https://github.com/idning/python-memcached.git#egg=memcache
fi
#build twemproxy
CFLAGS="-ggdb3 -O0" autoreconf -fvi && ./configure --enable-debug=log && make
ln -s `pwd`/src/nutcracker tests/_binaries/
cp `which redis-server` tests/_binaries/
cp `which redis-server` tests/_binaries/redis-sentinel
cp `which redis-cli` tests/_binaries/
cp `which memcached` tests/_binaries/
#run test
cd tests/ && nosetests --nologcapture -x -v