File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
- php :
3
- - 5.6
4
- - 7.0
5
- - hhvm
6
- env :
7
- - REDIS_STANDALONE=0
8
- - REDIS_STANDALONE=1
2
+ matrix :
3
+ include :
4
+ - php : 5.6
5
+ env : ENABLE_REDIS_EXT=0
6
+ - php : 5.6
7
+ env : ENABLE_REDIS_EXT=1
8
+ - php : 7.0
9
+ env : ENABLE_REDIS_EXT=0
10
+ - php : 7.0
11
+ env : ENABLE_REDIS_EXT=1
12
+ - php : hhvm
13
+ env : ENABLE_REDIS_EXT=0
9
14
before_script :
10
- - 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"
11
- - sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then cd phpredis-2.2.3/ && phpize && ./configure && make && make install; fi"
12
- - sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then echo \"extension=redis.so\" >> `php --ini | grep \"Loaded Configuration\" | sed -e \"s|.*:\s*||\"`; fi"
15
+ - sh -c "if [ $ENABLE_REDIS_EXT -eq 1 ]; then echo \"extension=redis.so\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi"
13
16
- composer install
You can’t perform that action at this time.
0 commit comments