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 Aug 8, 2019
1 parent c38a90f commit 4971b31
Show file tree
Hide file tree
Showing 20 changed files with 4,058 additions and 1,699 deletions.
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,22 @@ matrix:
- php: 7.1
- php: 7.1
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: REDIS_VERSION="5.0.2"
- php: 7.3
env: SYMFONY_VERSION="3.4.*"
- php: 7.3
Expand All @@ -24,7 +39,7 @@ matrix:
- php: nightly
allow_failures:
- php: nightly
- env: SYMFONY_VERSION="4.4.*" 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,8 +55,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;
- php -i | grep -i --color=never "Redis Version"
- 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 4971b31

Please sign in to comment.