2019-07-04 21:27:39 +08:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2019-06-24 13:10:41 +08:00
|
|
|
language: php
|
|
|
|
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 7.2
|
2019-07-17 10:43:38 +08:00
|
|
|
env: SW_VERSION="4.3.6"
|
2019-06-24 13:10:41 +08:00
|
|
|
- php: 7.2
|
2019-07-16 14:55:14 +08:00
|
|
|
env: SW_VERSION="4.4.1"
|
2019-06-24 13:10:41 +08:00
|
|
|
- php: 7.3
|
2019-07-17 10:43:38 +08:00
|
|
|
env: SW_VERSION="4.3.6"
|
2019-06-24 13:10:41 +08:00
|
|
|
- php: 7.3
|
2019-07-16 14:55:14 +08:00
|
|
|
env: SW_VERSION="4.4.1"
|
2019-06-24 13:10:41 +08:00
|
|
|
- php: master
|
2019-07-17 10:43:38 +08:00
|
|
|
env: SW_VERSION="4.3.6"
|
2019-06-24 13:10:41 +08:00
|
|
|
- php: master
|
2019-07-16 14:55:14 +08:00
|
|
|
env: SW_VERSION="4.4.1"
|
2019-06-24 13:10:41 +08:00
|
|
|
|
|
|
|
allow_failures:
|
|
|
|
- php: master
|
|
|
|
|
|
|
|
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-06 12:47:45 +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
|
2019-06-24 13:13:17 +08:00
|
|
|
|
2019-06-24 13:10:41 +08:00
|
|
|
script:
|
2019-06-24 17:27:03 +08:00
|
|
|
- composer test
|