Permalink
Browse files

different approach in installing redis.so for travis

  • Loading branch information...
1 parent f2e8ccc commit dfabc97a09c956f42ad233a26894cf05497e9f31 @d1rk d1rk committed Mar 14, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 .travis.yml
View
10 .travis.yml
@@ -2,6 +2,12 @@ language: php
php:
- 5.3
- 5.4
+before_script:
+ # install phpredis extension.
+ - 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"
+ - echo "extension=redis.so" > redis.ini && phpenv config-add redis.ini
before_install:
- cd ../
- git clone git://github.com/UnionOfRAD/framework.git
@@ -12,8 +18,4 @@ before_install:
- git submodule update --init --recursive
- cd libraries/lithium && git pull --rebase origin master
- cd ../../app/libraries/li3_redis
- - wget https://github.com/nicolasff/phpredis/archive/master.zip -O php-redis.zip && unzip php-redis.zip
- - cd phpredis-master/ && phpize && ./configure && make && make install
- - echo "extension=/home/travis/build/bruensicke/framework/app/libraries/li3_redis/phpredis-master/modules/redis.so" > redis.ini && phpenv config-add redis.ini
- - cd ..
script: ../../../libraries/lithium/console/li3 test tests

0 comments on commit dfabc97

Please sign in to comment.