File: travis.sh

package info (click to toggle)
nutcracker 0.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,388 kB
  • ctags: 1,493
  • sloc: ansic: 14,328; python: 1,147; sh: 854; makefile: 105
file content (28 lines) | stat: -rw-r--r-- 721 bytes parent folder | download
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.9.0
    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-cli` tests/_binaries/
cp `which memcached` tests/_binaries/

#run test
cd tests/ && nosetests --nologcapture -x -v