hyperf/.travis.yml
李铭昕 ae692bd197 Update .travis.yml
Build test
2019-06-24 13:13:17 +08:00

46 lines
953 B
YAML

language: php
sudo: required
matrix:
include:
- php: 7.2
env: SW_VERSION="4.3.5"
- php: 7.2
env: SW_VERSION="4.4.0-beta"
- php: 7.3
env: SW_VERSION="4.3.5"
- php: 7.3
env: SW_VERSION="4.4.0-beta"
- php: master
env: SW_VERSION="4.3.5"
- php: master
env: SW_VERSION="4.4.0-beta"
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
before_script:
- cd $TRAVIS_BUILD_DIR
- composer config -g process-timeout 900 && composer update
script:
- composer test