Skip to content

Commit 5aba246

Browse files
authored
Upstream travis ci config (swoft-cloud/swoft-component#160)
* Update components travis ci config
1 parent 4809074 commit 5aba246

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: php
33
php:
44
- 7.0
55
- 7.1
6+
- 7.2
67

78
services:
89
- mysql
@@ -12,7 +13,9 @@ before_install:
1213

1314
install:
1415
- wget https://github.com/redis/hiredis/archive/v0.13.3.tar.gz -O hiredis.tar.gz && mkdir -p hiredis && tar -xf hiredis.tar.gz -C hiredis --strip-components=1 && cd hiredis && sudo make -j$(nproc) && sudo make install && sudo ldconfig && cd ..
15-
- pecl install -f swoole-2.0.12
16+
- echo 'no' | pecl install -f redis
17+
- wget https://github.com/swoole/swoole-src/archive/v4.0.2.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-async-redis && make -j$(nproc) && make install && cd -
18+
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
1619

1720
before_script:
1821
- composer update

0 commit comments

Comments
 (0)