Skip to content

Commit

Permalink
Build custom Redis client based on the installed extension
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Mar 26, 2019
1 parent 521d237 commit fe0c251
Show file tree
Hide file tree
Showing 21 changed files with 4,072 additions and 1,469 deletions.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,19 @@ matrix:
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
- php: 7.1
env: SYMFONY_VERSION="4.0.*" REDIS_VERSION="3.1.6"
- php: 7.1
env: SYMFONY_VERSION="4.1.*" REDIS_VERSION="3.1.6"
- php: 7.2
env: REDIS_VERSION="4.3.0"
- php: 7.2
env: SYMFONY_VERSION="4.0.*" REDIS_VERSION="4.3.0"
- php: 7.2
env: SYMFONY_VERSION="4.1.*" REDIS_VERSION="4.3.0"
- php: 7.2
env: SYMFONY_VERSION="4.2.*" SYMFONY_DEPRECATIONS_HELPER="weak" STABILITY="dev" REDIS_VERSION="4.3.0"
- php: 7.3
env: REDIS_VERSION="4.3.0"
- php: 7.3
env: SYMFONY_VERSION="3.4.*"
- php: 7.3
Expand All @@ -24,7 +35,7 @@ matrix:
- php: nightly
allow_failures:
- php: nightly
- env: SYMFONY_VERSION="4.3.*" SYMFONY_DEPRECATIONS_HELPER="weak" STABILITY="dev"
- env: SYMFONY_VERSION="4.2.*" SYMFONY_DEPRECATIONS_HELPER="weak" STABILITY="dev" REDIS_VERSION="4.3.0"

sudo: false

Expand All @@ -40,7 +51,9 @@ env:
before_install:
- phpenv config-rm xdebug.ini || true
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;
- if [ "$REDIS_VERSION" != "" ]; then pecl bundle "redis-$REDIS_VERSION" && cd redis && phpize && pecl install igbinary && ./configure --enable-redis-igbinary CFLAGS=-Wall && cd ..; fi;
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv rehash; fi;
- php -i | grep -i --color=never "Redis Version"
- composer self-update
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi;
Expand Down
Loading

0 comments on commit fe0c251

Please sign in to comment.