mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-05 05:07:58 +08:00
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
language: php
|
|
|
|
sudo: required
|
|
|
|
matrix:
|
|
include:
|
|
- php: 7.2
|
|
env: SW_VERSION="4.5.2"
|
|
- php: 7.3
|
|
env: SW_VERSION="4.5.2"
|
|
- php: 7.4
|
|
env: SW_VERSION="4.5.2"
|
|
|
|
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
|
|
- bash .travis/setup.mysql.sh
|
|
- docker run -d --name dev-consul -e CONSUL_BIND_INTERFACE=eth0 -p 8500:8500 consul
|
|
|
|
before_script:
|
|
- cd $TRAVIS_BUILD_DIR
|
|
- composer config -g process-timeout 900 && composer update
|
|
|
|
script:
|
|
- |
|
|
composer analyse \
|
|
src/amqp \
|
|
src/async-queue \
|
|
src/cache \
|
|
src/command \
|
|
src/config \
|
|
src/config-aliyun-acm \
|
|
src/config-apollo \
|
|
src/config-etcd \
|
|
src/constants \
|
|
src/consul \
|
|
src/db \
|
|
src/db-connection \
|
|
src/devtool \
|
|
src/di
|
|
- composer test -- --exclude-group NonCoroutine
|
|
- vendor/bin/phpunit --group NonCoroutine
|