-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
157 lines (146 loc) · 4.1 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
language: php
cache:
directories:
- vendor
- $HOME/.composer/cache
# Test in supported Laravel versions and Laravel's supported PHP versions.
#
# * Laravel 5.3+ requires PHP 5.6+.
# * Laravel 5.5+ requires PHP 7.0+.
# * Laravel 5.6+ requires PHP 7.1+.
# * Laravel 6.0+ requires PHP 7.2+.
# * Laravel 7.0+ requires PHP 7.2+.
# * Laravel 8.0+ requires PHP 7.3+.
# * TravisCI tests in Ubuntu 16.04 Xenial Xerus, which doesn't support PHP 5.5.
# Test 5.5 in Trusty Tahr instead.
matrix:
include:
- php: "5.5"
dist: trusty
env: LARAVEL_VERSION="5.0.*"
- php: "5.5"
dist: trusty
env: LARAVEL_VERSION="5.1.*"
- php: "5.5"
dist: trusty
env: LARAVEL_VERSION="5.2.*"
- php: "5.6"
env: LARAVEL_VERSION="5.0.*"
- php: "5.6"
env: LARAVEL_VERSION="5.1.*"
- php: "5.6"
env: LARAVEL_VERSION="5.2.*"
- php: "5.6"
env: LARAVEL_VERSION="5.3.*"
- php: "5.6"
env: LARAVEL_VERSION="5.4.*"
- php: "7.0"
env: LARAVEL_VERSION="5.0.*"
- php: "7.0"
env: LARAVEL_VERSION="5.1.*"
- php: "7.0"
env: LARAVEL_VERSION="5.2.*"
- php: "7.0"
env: LARAVEL_VERSION="5.3.*"
- php: "7.0"
env: LARAVEL_VERSION="5.4.*"
- php: "7.0"
env: LARAVEL_VERSION="5.5.*"
- php: "7.1"
env: LARAVEL_VERSION="5.0.*"
- php: "7.1"
env: LARAVEL_VERSION="5.1.*"
- php: "7.1"
env: LARAVEL_VERSION="5.2.*"
- php: "7.1"
env: LARAVEL_VERSION="5.3.*"
- php: "7.1"
env: LARAVEL_VERSION="5.4.*"
- php: "7.1"
env: LARAVEL_VERSION="5.5.*"
- php: "7.1"
env: LARAVEL_VERSION="5.6.*"
- php: "7.1"
env: LARAVEL_VERSION="5.7.*"
- php: "7.2"
env: LARAVEL_VERSION="5.0.*"
- php: "7.2"
env: LARAVEL_VERSION="5.1.*"
- php: "7.2"
env: LARAVEL_VERSION="5.2.*"
- php: "7.2"
env: LARAVEL_VERSION="5.3.*"
- php: "7.2"
env: LARAVEL_VERSION="5.4.*"
- php: "7.2"
env: LARAVEL_VERSION="5.5.*"
- php: "7.2"
env: LARAVEL_VERSION="5.6.*"
- php: "7.2"
env: LARAVEL_VERSION="5.7.*"
- php: "7.2"
env: LARAVEL_VERSION="5.8.*"
- php: "7.2"
env: LARAVEL_VERSION="6.0.*"
- php: "7.2"
env: LARAVEL_VERSION="7.0.*"
- php: "7.3"
env: LARAVEL_VERSION="5.0.*"
- php: "7.3"
env: LARAVEL_VERSION="5.1.*"
- php: "7.3"
env: LARAVEL_VERSION="5.2.*"
- php: "7.3"
env: LARAVEL_VERSION="5.3.*"
- php: "7.3"
env: LARAVEL_VERSION="5.4.*"
- php: "7.3"
env: LARAVEL_VERSION="5.5.*"
- php: "7.3"
env: LARAVEL_VERSION="5.6.*"
- php: "7.3"
env: LARAVEL_VERSION="5.7.*"
- php: "7.3"
env: LARAVEL_VERSION="5.8.*"
- php: "7.3"
env: LARAVEL_VERSION="6.0.*"
- php: "7.3"
env: LARAVEL_VERSION="7.0.*"
- php: "7.3"
env: LARAVEL_VERSION="8.0.*"
- php: "7.4"
env: LARAVEL_VERSION="5.0.*"
- php: "7.4"
env: LARAVEL_VERSION="5.1.*"
- php: "7.4"
env: LARAVEL_VERSION="5.2.*"
- php: "7.4"
env: LARAVEL_VERSION="5.3.*"
- php: "7.4"
env: LARAVEL_VERSION="5.4.*"
- php: "7.4"
env: LARAVEL_VERSION="5.5.*"
- php: "7.4"
env: LARAVEL_VERSION="5.6.*"
- php: "7.4"
env: LARAVEL_VERSION="5.7.*"
- php: "7.4"
env: LARAVEL_VERSION="5.8.*"
- php: "7.4"
env: LARAVEL_VERSION="6.0.*"
- php: "7.4"
env: LARAVEL_VERSION="7.0.*"
- php: "7.4"
env: LARAVEL_VERSION="8.0.*"
# Code coverage testing isn't necessary, so remove xdebug to speed things up.
before_install:
- phpenv config-rm xdebug.ini
before_script:
# Install the right version of Laravel components based on the LARAVEL_VERSION
# environment variable.
- 'sed -i -e "s/\"illuminate\/database\": \"\(.*\)\"/\"illuminate\/database\": \"$LARAVEL_VERSION\"/" composer.json'
- 'sed -i -e "s/\"illuminate\/support\": \"\(.*\)\"/\"illuminate\/support\": \"$LARAVEL_VERSION\"/" composer.json'
- 'sed -i -e "s/\"illuminate\/events\": \"\(.*\)\"/\"illuminate\/events\": \"$LARAVEL_VERSION\"/" composer.json'
- composer install --dev
script:
- vendor/bin/phpunit