mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 13:42:22 +00:00
enable redis extension on supported php versions
This commit is contained in:
parent
2e24b5308f
commit
8989564468
1 changed files with 13 additions and 10 deletions
23
.travis.yml
23
.travis.yml
|
@ -1,13 +1,16 @@
|
||||||
language: php
|
language: php
|
||||||
php:
|
matrix:
|
||||||
- 5.6
|
include:
|
||||||
- 7.0
|
- php: 5.6
|
||||||
- hhvm
|
env: ENABLE_REDIS_EXT=0
|
||||||
env:
|
- php: 5.6
|
||||||
- REDIS_STANDALONE=0
|
env: ENABLE_REDIS_EXT=1
|
||||||
- REDIS_STANDALONE=1
|
- php: 7.0
|
||||||
|
env: ENABLE_REDIS_EXT=0
|
||||||
|
- php: 7.0
|
||||||
|
env: ENABLE_REDIS_EXT=1
|
||||||
|
- php: hhvm
|
||||||
|
env: ENABLE_REDIS_EXT=0
|
||||||
before_script:
|
before_script:
|
||||||
- sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then wget https://github.com/nicolasff/phpredis/archive/2.2.3.zip -O php-redis.zip && unzip php-redis.zip; fi"
|
- sh -c "if [ $ENABLE_REDIS_EXT -eq 1 ]; then echo \"extension=redis.so\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi"
|
||||||
- sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then cd phpredis-2.2.3/ && phpize && ./configure && make && make install; fi"
|
|
||||||
- sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then echo \"extension=redis.so\" >> `php --ini | grep \"Loaded Configuration\" | sed -e \"s|.*:\s*||\"`; fi"
|
|
||||||
- composer install
|
- composer install
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue