Skip to content
This repository was archived by the owner on Aug 15, 2018. It is now read-only.

Commit bc38576

Browse files
committed
fix travis-ci: PHPUnit 6 doesn't support PHP5.x
1 parent 80ad874 commit bc38576

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ php:
55
- '5.5'
66
- '5.6'
77
- '7.0'
8+
- '7.1'
89

910
services:
1011
- redis-server
1112

12-
before_install: echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
13+
before_install: v=$(phpenv version-name); if [ ${v:0:1} -lt 7 ]; then pecl install redis; else echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
1314

1415
install:
1516
- composer global require "fxp/composer-asset-plugin:^1.2.0"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ It includes a `Cache` and `Session` storage handler in redis.
1818
Requirements
1919
------------
2020

21-
- PHP >=5.4.0
21+
- PHP >= 5.4.0
2222
- Redis >= 2.6.12
23-
- ext-redis >=2.2.7
23+
- ext-redis >= 2.2.7
2424
- Yii2 ~2.0.4
2525

2626
Installation

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"yiisoft/yii2": "~2.0.4",
14-
"ext-redis": ">=2.2.5",
14+
"ext-redis": ">=2.2.7",
1515
"php": ">=5.4.0"
1616
},
1717
"autoload": {
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "*",
23+
"phpunit/phpunit": "<6.0",
2424
"yiisoft/yii2-redis": "^2.0"
2525
}
2626
}

0 commit comments

Comments
 (0)