Skip to content

Commit 599dc4c

Browse files
authored
Merge pull request #306 from chrisboulton/php-versions
Remove old PHP versions from test matrix, require PHP 7 and HHVM to pass as these are now officially supported
2 parents 6b56079 + 8989564 commit 599dc4c

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

.travis.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
language: php
2-
php:
3-
- 5.3
4-
- 5.4
5-
- 5.5
6-
- 5.6
7-
- 7.0
8-
- hhvm
9-
102
matrix:
11-
allow_failures:
12-
- php: hhvm
13-
- php: 7.0
14-
env:
15-
- REDIS_STANDALONE=0
16-
- REDIS_STANDALONE=1
17-
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
1814
before_script:
19-
- 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"
20-
- sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then cd phpredis-2.2.3/ && phpize && ./configure && make && make install; fi"
21-
- 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"
2216
- composer install

0 commit comments

Comments
 (0)