Skip to content
Browse files

fix travis-ci build script

  • Loading branch information...
1 parent 9d5e50a commit d8d94e9a15859122cecf25cb4b72f2adea9a41e0 @salimane committed
Showing with 24 additions and 27 deletions.
  1. +8 −3 .travis.yml
  2. +3 −5 bin/redis/redis-node-1.conf
  3. +3 −5 bin/redis/redis-node-2.conf
  4. +3 −5 bin/redis/redis-node-5.conf
  5. +3 −5 bin/redis/redis-node-6.conf
  6. +4 −4 bin/travis-init.sh
View
11 .travis.yml
@@ -1,15 +1,20 @@
language: php
+env:
+ global:
+ - REPO="salimane/rediscluster-php"
+ - CI_HOME=`pwd`/$REPO
+
php:
- 5.3
- 5.4
-
+
before_script:
- sh bin/travis-init.sh
-
+
services:
- redis-server
-
+
notifications:
email:
recipients: me@salimane.com
View
8 bin/redis/redis-node-1.conf
@@ -1,8 +1,6 @@
-dir /home/travis/builds/salimane/rediscluster-php/bin/redis
-pidfile /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-1.pid
+pidfile redis-node-1.pid
dbfilename dump-node-1.rdb
-logfile /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-1.log
+logfile redis-node-1.log
port 63791
-bind 127.0.0.1
-include /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-common.conf
+bind 127.0.0.1
View
8 bin/redis/redis-node-2.conf
@@ -1,8 +1,6 @@
-dir /home/travis/builds/salimane/rediscluster-php/bin/redis
-pidfile /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-2.pid
+pidfile redis-node-2.pid
dbfilename dump-node-2.rdb
-logfile /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-2.log
+logfile redis-node-2.log
port 63792
-bind 127.0.0.1
-include /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-common.conf
+bind 127.0.0.1
View
8 bin/redis/redis-node-5.conf
@@ -1,9 +1,7 @@
-dir /home/travis/builds/salimane/rediscluster-php/bin/redis
-pidfile /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-5.pid
+pidfile redis-node-5.pid
dbfilename dump-node-5.rdb
-logfile /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-5.log
+logfile redis-node-5.log
port 63795
bind 127.0.0.1
-slaveof 127.0.0.1 63792
-include /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-common.conf
+slaveof 127.0.0.1 63792
View
8 bin/redis/redis-node-6.conf
@@ -1,9 +1,7 @@
-dir /home/travis/builds/salimane/rediscluster-php/bin/redis
-pidfile /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-6.pid
+pidfile redis-node-6.pid
dbfilename dump-node-6.rdb
-logfile /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-6.log
+logfile redis-node-6.log
port 63796
bind 127.0.0.1
-slaveof 127.0.0.1 63791
-include /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-common.conf
+slaveof 127.0.0.1 63791
View
8 bin/travis-init.sh
@@ -1,7 +1,7 @@
-sh -c "/usr/bin/redis-server /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-1.conf"
-sh -c "/usr/bin/redis-server /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-2.conf"
-sh -c "/usr/bin/redis-server /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-5.conf"
-sh -c "/usr/bin/redis-server /home/travis/builds/salimane/rediscluster-php/bin/redis/redis-node-6.conf"
+sh -c "/usr/bin/redis-server $CI_HOME/bin/redis/redis-node-1.conf --dir ${CI_HOME}/bin/redis --include ${CI_HOME}/bin/redis/redis-common.conf"
+sh -c "/usr/bin/redis-server $CI_HOME/bin/redis/redis-node-2.conf --dir ${CI_HOME}/bin/redis --include ${CI_HOME}/bin/redis/redis-common.conf"
+sh -c "/usr/bin/redis-server $CI_HOME/bin/redis/redis-node-5.conf --dir ${CI_HOME}/bin/redis --include ${CI_HOME}/bin/redis/redis-common.conf"
+sh -c "/usr/bin/redis-server $CI_HOME/bin/redis/redis-node-6.conf --dir ${CI_HOME}/bin/redis --include ${CI_HOME}/bin/redis/redis-common.conf"
wget -O phpredis.tar.gz --no-check-certificate https://github.com/nicolasff/phpredis/tarball/master
tar -xzf phpredis.tar.gz
sh -c "cd nicolasff-phpredis-* && phpize && ./configure && make && sudo make install"

0 comments on commit d8d94e9

Please sign in to comment.
Something went wrong with that request. Please try again.