-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
42 lines (34 loc) · 1020 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: php
sudo: required
matrix:
include:
- php: 7.2
env: SW_VERSION="4.5.4" DAEMONIZE=1
- php: 7.3
env: SW_VERSION="4.5.4" DAEMONIZE=1
- php: 7.4
env: SW_VERSION="4.5.4" DAEMONIZE=1
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
before_script:
- cd $TRAVIS_BUILD_DIR
- composer config -g process-timeout 900 && composer update
- php example/index.php start
- sleep 5
script:
- composer analyse src
notifications:
webhooks: https://oapi.dingtalk.com/robot/send?access_token=72c12e591c435f0f41e09261f6252aeafd284e432657b1f8d4a77b5aac8fbfcd