Skip to content

Commit

Permalink
Upstream travis ci config (swoft-cloud/swoft-component#160)
Browse files Browse the repository at this point in the history
* Update components travis ci config
  • Loading branch information
huangzhhui authored Aug 1, 2018
1 parent 8aca2bd commit befcc93
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@ language: php
php:
- 7.0
- 7.1

services:
- mysql

before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- 7.2

install:
- 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 ..
- pecl install -f swoole-2.0.12
- 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 && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
- phpenv config-rm xdebug.ini
- composer update

script: composer test

0 comments on commit befcc93

Please sign in to comment.