diff --git a/.travis.yml b/.travis.yml index 94c4bdf..c223c4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ matrix: - php: '7.4' env: SWOOLE_VERSION="master" - php: 'nightly' - env: SWOOLE_VERSION="master" DISABLE_XDEBUG=false + env: SWOOLE_VERSION="master" DISABLE_XDEBUG=false INSTALL_REDIS_EXT=true - php: '7.1' env: SWOOLE_VERSION="v4.4.17" - php: '7.2' @@ -41,6 +41,16 @@ services: - redis-server install: + - if [[ $INSTALL_REDIS_EXT == true ]]; then + wget https://github.com/phpredis/phpredis/archive/develop.zip; + unzip develop.zip; + cd phpredis-develop; + phpize; + ./configure; + make && make install; + cd ../; + fi + - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - wget https://github.com/swoole/swoole-src/archive/$SWOOLE_VERSION.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure --enable-openssl --enable-http2 && make -j && make install && cd - - echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini