Permalink
Browse files

setup cluster in travis build env

  • Loading branch information...
1 parent c7901d7 commit 709a6c7e5d14f30d020012d3556f2dba6a5f7572 @salimane committed Oct 5, 2012
View
@@ -1,14 +1,22 @@
language: python
+
python:
- "2.6"
- "2.7"
- "3.2"
# - "pypy"
-# command to install dependencies
+
install:
- pip install -r requirements.txt --use-mirrors
-# command to run tests
+
+before_script:
+ - sh bin/travis-init.sh
+
+services:
+ - redis-server
+
script: ./run_tests
+
notifications:
email:
recipients: me@salimane.com
@@ -0,0 +1,12 @@
+
+daemonize yes
+timeout 300
+loglevel verbose
+databases 16
+rdbcompression yes
+appendonly no
+appendfsync everysec
+activerehashing yes
+save 900 1
+save 300 10
+save 60 10000
@@ -0,0 +1,8 @@
+
+dir /home/travis/builds/salimane/rediscluster-py/bin/redis
+pidfile /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-1.pid
+dbfilename dump-node-1.rdb
+logfile /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-1.log
+port 63791
+bind 127.0.0.1
+include /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-common.conf
@@ -0,0 +1,8 @@
+
+dir /home/travis/builds/salimane/rediscluster-py/bin/redis
+pidfile /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-2.pid
+dbfilename dump-node-2.rdb
+logfile /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-2.log
+port 63792
+bind 127.0.0.1
+include /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-common.conf
@@ -0,0 +1,9 @@
+
+dir /home/travis/builds/salimane/rediscluster-py/bin/redis
+pidfile /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-5.pid
+dbfilename dump-node-5.rdb
+logfile /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-5.log
+port 63795
+bind 127.0.0.1
+slaveof 127.0.0.1 63792
+include /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-common.conf
@@ -0,0 +1,9 @@
+
+dir /home/travis/builds/salimane/rediscluster-py/bin/redis
+pidfile /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-6.pid
+dbfilename dump-node-6.rdb
+logfile /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-6.log
+port 63796
+bind 127.0.0.1
+slaveof 127.0.0.1 63791
+include /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-common.conf
View
@@ -0,0 +1,4 @@
+sh -c "/usr/bin/redis-server /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-1.conf"
+sh -c "/usr/bin/redis-server /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-2.conf"
+sh -c "/usr/bin/redis-server /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-5.conf"
+sh -c "/usr/bin/redis-server /home/travis/builds/salimane/rediscluster-py/bin/redis/redis-node-6.conf"

0 comments on commit 709a6c7

Please sign in to comment.