-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
116 lines (104 loc) · 2.91 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
language: php
dist: xenial
os: linux
cache:
directories:
- $HOME/.cache/pip
- $HOME/.composer/cache/files
php:
- 7.0.0 # Laravel 5.5
- 7.1.3 # Laravel 5.6 - 5.8
- 7.2.0 # Laravel 6.x
- 7.2.5 # Laravel 7.x
- 7.3.0 # Laravel 8.x
env:
- TESTBENCH_VERSION=~3.5.0 # Laravel 5.5.x
- TESTBENCH_VERSION=~3.6.0 # Laravel 5.6.x
- TESTBENCH_VERSION=~3.7.0 # Laravel 5.7.x
- TESTBENCH_VERSION=~3.8.0 # Laravel 5.8.x
- TESTBENCH_VERSION=~4.0.0 # Laravel 6.x
- TESTBENCH_VERSION=~5.0.0 # Laravel 7.x
- TESTBENCH_VERSION=~6.0.0 # Laravel 8.x
jobs:
exclude:
# 排除高版本的 Laravel 不支持的低版本 PHP 的测试
# Laravel 5.6 及以后版本不支持 7.0.0
- php: 7.0.0
env: TESTBENCH_VERSION=~3.6.0
- php: 7.0.0
env: TESTBENCH_VERSION=~3.7.0
- php: 7.0.0
env: TESTBENCH_VERSION=~3.8.0
- php: 7.0.0
env: TESTBENCH_VERSION=~4.0.0
- php: 7.0.0
env: TESTBENCH_VERSION=~5.0.0
- php: 7.0.0
env: TESTBENCH_VERSION=~6.0.0
# Laravel 6.x 及以后版本不支持 7.1.3
- php: 7.1.3
env: TESTBENCH_VERSION=~4.0.0
- php: 7.1.3
env: TESTBENCH_VERSION=~5.0.0
- php: 7.1.3
env: TESTBENCH_VERSION=~6.0.0
# Laravel 7.x 及以后版本不支持 7.2.0
- php: 7.2.0
env: TESTBENCH_VERSION=~5.0.0
- php: 7.2.0
env: TESTBENCH_VERSION=~6.0.0
# Laravel 8.x 及以后版本不支持 7.2.5
- php: 7.2.5
env: TESTBENCH_VERSION=~6.0.0
# 排除低版本的 Laravel 对高版本的 PHP 的测试
# 排除 5.5
- php: 7.1.3
env: TESTBENCH_VERSION=~3.5.0
- php: 7.2.0
env: TESTBENCH_VERSION=~3.5.0
- php: 7.2.5
env: TESTBENCH_VERSION=~3.5.0
- php: 7.3.0
env: TESTBENCH_VERSION=~3.5.0
# 排除 5.6
- php: 7.2.0
env: TESTBENCH_VERSION=~3.6.0
- php: 7.2.5
env: TESTBENCH_VERSION=~3.6.0
- php: 7.3.0
env: TESTBENCH_VERSION=~3.6.0
# 排除 5.7
- php: 7.2.0
env: TESTBENCH_VERSION=~3.7.0
- php: 7.2.5
env: TESTBENCH_VERSION=~3.7.0
- php: 7.3.0
env: TESTBENCH_VERSION=~3.7.0
# 排除 5.8
- php: 7.2.0
env: TESTBENCH_VERSION=~3.8.0
- php: 7.2.5
env: TESTBENCH_VERSION=~3.8.0
- php: 7.3.0
env: TESTBENCH_VERSION=~3.8.0
# 排除 6.x
- php: 7.2.5
env: TESTBENCH_VERSION=~4.0.0
- php: 7.3.0
env: TESTBENCH_VERSION=~4.0.0
# 排除 7.x
- php: 7.3.0
env: TESTBENCH_VERSION=~5.0.0
before_install:
- cp ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini
- phpenv config-rm xdebug.ini
- composer require "orchestra/testbench:${TESTBENCH_VERSION}" --no-update --prefer-dist
install: travis_retry composer install --no-interaction --prefer-dist
before_script: phpenv config-add ~/xdebug.ini
script:
- composer show
- vendor/bin/phpunit -v
after_success:
- php vendor/bin/php-coveralls
notifications:
email: false