Skip to content

Commit 8989564

Browse files
committed
enable redis extension on supported php versions
1 parent 2e24b53 commit 8989564

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.travis.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
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
914
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"
1316
- composer install

0 commit comments

Comments
 (0)