Skip to content

Commit

Permalink
更新travis测试
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Apr 20, 2020
1 parent 8a2c318 commit 5987d95
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

Expand Down

0 comments on commit 5987d95

Please sign in to comment.