2019-06-24 13:10:41 +08:00
|
|
|
language: php
|
|
|
|
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2020-04-09 11:48:21 +08:00
|
|
|
- php: 7.2
|
2020-04-26 14:47:32 +08:00
|
|
|
env: SW_VERSION="4.5.0"
|
2020-04-09 11:48:21 +08:00
|
|
|
- php: 7.3
|
2020-04-26 14:47:32 +08:00
|
|
|
env: SW_VERSION="4.5.0"
|
2020-04-09 11:48:21 +08:00
|
|
|
- php: 7.4
|
2020-04-26 14:47:32 +08:00
|
|
|
env: SW_VERSION="4.5.0"
|
2019-06-24 13:10:41 +08:00
|
|
|
- php: 7.2
|
2020-04-26 14:47:32 +08:00
|
|
|
env: SW_VERSION="4.4.18"
|
2019-06-24 13:10:41 +08:00
|
|
|
- php: 7.3
|
2020-04-26 14:47:32 +08:00
|
|
|
env: SW_VERSION="4.4.18"
|
2019-12-04 18:49:56 +08:00
|
|
|
- php: 7.4
|
2020-04-26 14:47:32 +08:00
|
|
|
env: SW_VERSION="4.4.18"
|
2019-06-24 13:10:41 +08:00
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- redis
|
|
|
|
- docker
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- export PHP_MAJOR="$(`phpenv which php` -r 'echo phpversion();' | cut -d '.' -f 1)"
|
|
|
|
- export PHP_MINOR="$(`phpenv which php` -r 'echo phpversion();' | cut -d '.' -f 2)"
|
|
|
|
- echo $PHP_MAJOR
|
|
|
|
- echo $PHP_MINOR
|
|
|
|
|
|
|
|
install:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- bash .travis/swoole.install.sh
|
|
|
|
- phpenv config-rm xdebug.ini || echo "xdebug not available"
|
|
|
|
- phpenv config-add .travis/ci.ini
|
2019-06-24 16:15:18 +08:00
|
|
|
- bash .travis/setup.mysql.sh
|
2019-07-27 16:51:52 +08:00
|
|
|
- docker run -d --name dev-consul -e CONSUL_BIND_INTERFACE=eth0 -p 8500:8500 consul
|
2019-06-24 13:10:41 +08:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- composer config -g process-timeout 900 && composer update
|
2020-03-13 10:37:42 +08:00
|
|
|
|
2019-06-24 13:10:41 +08:00
|
|
|
script:
|
2020-04-27 16:47:07 +08:00
|
|
|
- |
|
|
|
|
composer analyse \
|
|
|
|
src/di \
|
|
|
|
src/json-rpc \
|
|
|
|
src/tracer \
|
|
|
|
src/metric \
|
|
|
|
src/redis \
|
|
|
|
src/nats \
|
|
|
|
src/db \
|
|
|
|
src/retry \
|
|
|
|
src/grpc-client \
|
|
|
|
src/nsq \
|
|
|
|
src/filesystem \
|
|
|
|
src/socketio-server \
|
|
|
|
src/load-balancer
|
2019-10-23 17:35:45 +08:00
|
|
|
- composer test -- --exclude-group NonCoroutine
|
|
|
|
- vendor/bin/phpunit --group NonCoroutine
|