Score
0
Watch 39 Star 178 Fork 31

宇润 / IMIPHPMulanPSL-1.0

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
imi 是基于 PHP 协程应用开发框架,它支持 HttpApi、WebSocket、TCP、UDP 应用开发。QQ群:17916227 spread retract

https://www.imiphp.com/

Clone or download
.travis.yml 2.11 KB
Copy Edit Web IDE Raw Blame History
宇润 authored 2019-10-17 08:36 . 自动化测试更新到 Swoole 4.4.8
sudo: required
language: php
matrix:
include:
- php: '7.1'
env: SWOOLE_VERSION="v4.3.6"
- php: '7.2'
env: SWOOLE_VERSION="v4.3.6"
- php: '7.3'
env: SWOOLE_VERSION="v4.3.6"
- php: '7.1'
env: SWOOLE_VERSION="master"
- php: '7.2'
env: SWOOLE_VERSION="master"
- php: '7.3'
env: SWOOLE_VERSION="master"
- php: '7.4snapshot'
env: SWOOLE_VERSION="master" DISABLE_XDEBUG=false
- php: 'nightly'
env: SWOOLE_VERSION="master" DISABLE_XDEBUG=false INSTALL_REDIS_EXT=true
- php: '7.1'
env: SWOOLE_VERSION="v4.4.8"
- php: '7.2'
env: SWOOLE_VERSION="v4.4.8"
- php: '7.3'
env: SWOOLE_VERSION="v4.4.8"
allow_failures:
- env: SWOOLE_VERSION="master"
- php: nightly
- php: 7.4snapshot
services:
- redis-server
- mysql
addons:
apt:
packages:
- unzip
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 && make -j && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
before_script:
- if [[ $DISABLE_XDEBUG != false ]]; then
phpenv config-rm xdebug.ini;
fi
- sh tests/db/install-db.sh
- curl -sSfL -o ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
- export TEST_PHPUNIT_PATH=~/.phpenv/versions/$(phpenv version-name)/bin/phpunit
- php ./.travis/composer-no-phpunit.php
- composer update
- cd ./tests && composer update && cd ../
- php --ri swoole
script:
- ./tests/phpunit -c ./tests/phpunit.xml
after_failure:
- php ./.travis/output-server-log.php
env:
global:
- MYSQL_SERVER_USERNAME: root
- MYSQL_SERVER_PASSWORD:
PHP
1
https://gitee.com/yurunsoft/IMI.git
git@gitee.com:yurunsoft/IMI.git
yurunsoft
IMI
IMI
master

Help Search