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

Commit

Permalink
fix travis-ci: PHPUnit 6 doesn't support PHP5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dcb9 committed Jun 29, 2017
1 parent 80ad874 commit bc38576
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ php:
- '5.5'
- '5.6'
- '7.0'
- '7.1'

services:
- redis-server

before_install: echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
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

install:
- composer global require "fxp/composer-asset-plugin:^1.2.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ It includes a `Cache` and `Session` storage handler in redis.
Requirements
------------

- PHP >=5.4.0
- PHP >= 5.4.0
- Redis >= 2.6.12
- ext-redis >=2.2.7
- ext-redis >= 2.2.7
- Yii2 ~2.0.4

Installation
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"yiisoft/yii2": "~2.0.4",
"ext-redis": ">=2.2.5",
"ext-redis": ">=2.2.7",
"php": ">=5.4.0"
},
"autoload": {
Expand All @@ -20,7 +20,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "*",
"phpunit/phpunit": "<6.0",
"yiisoft/yii2-redis": "^2.0"
}
}

0 comments on commit bc38576

Please sign in to comment.