-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
73 lines (66 loc) · 1.57 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
dist: focal
language: php
cache:
directories:
- $HOME/.composer/cache
- $HOME/pecl_cache
env:
global:
- COMPOSER_ARGS=install
- OPENSWOOLE_VERSION=4.12.1
matrix:
include:
- php: "8.0"
- php: "8.1"
env:
- PHP_CS_FIXER_IGNORE_ENV=1
- php: "8.1"
env:
- OPENSWOOLE_LATEST=1
- COMPOSER_ARGS='update'
- NO_ANALYSE=1
- php: "8.2"
env:
- PHP_CS_FIXER_IGNORE_ENV=1
- php: "8.2"
env:
- OPENSWOOLE_LATEST=1
- COMPOSER_ARGS='update'
- NO_ANALYSE=1
fast_finish: true
allow_failures:
- php: "8.1"
env:
- OPENSWOOLE_LATEST=1
- COMPOSER_ARGS='update'
- NO_ANALYSE=1
- php: "8.2"
env:
- OPENSWOOLE_LATEST=1
- COMPOSER_ARGS='update'
- NO_ANALYSE=1
before_script:
- phpenv config-rm xdebug.ini
before_install:
- export PATH="$PATH:$HOME/.config/composer/vendor/bin"
- composer global require phwoolcon/ci-pecl-cacher
- pecl update-channels
- ci-pecl-install inotify
- >-
if [[ "$OPENSWOOLE_LATEST" = "1" ]]; then
ci-pecl-install openswoole;
else
ci-pecl-install openswoole-$OPENSWOOLE_VERSION openswoole skip-update;
fi
- php -r "echo swoole_version().PHP_EOL;"
install:
- export COMPOSER_ARGS="$COMPOSER_ARGS --prefer-dist --no-progress --no-suggest --ansi"
- echo "composer $COMPOSER_ARGS"
- composer $COMPOSER_ARGS
script:
- >-
if [[ "NO_ANALYSE" != "1" ]]; then
composer analyse
fi
- composer unit-tests
- composer feature-tests