forked from cytopia/devilbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
261 lines (246 loc) · 9.65 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
###
### Enable sudo (required for docker service)
###
sudo: required
###
### Attach services
###
services:
- docker
###
### Specify combinations
###
env:
###
### The matrix specifies 2 versions to compare against each other.
### As PHP (any versoin) needs to be able to run with everything,
### I am going to test any PHP version against any other service.
###
###
### PHP vs WWW
###
# PHP vs Apache 2.2
- S1=PHP V1=php-fpm-5.4 S2=HTTPD V2=apache-2.2
- S1=PHP V1=php-fpm-5.5 S2=HTTPD V2=apache-2.2
- S1=PHP V1=php-fpm-5.6 S2=HTTPD V2=apache-2.2
- S1=PHP V1=php-fpm-7.0 S2=HTTPD V2=apache-2.2
- S1=PHP V1=php-fpm-7.1 S2=HTTPD V2=apache-2.2
- S1=PHP V1=php-fpm-7.2 S2=HTTPD V2=apache-2.2
- S1=PHP V1=hhvm-latest S2=HTTPD V2=apache-2.2
# PHP vs Apache 2.4
- S1=PHP V1=php-fpm-5.4 S2=HTTPD V2=apache-2.4
- S1=PHP V1=php-fpm-5.5 S2=HTTPD V2=apache-2.4
- S1=PHP V1=php-fpm-5.6 S2=HTTPD V2=apache-2.4
- S1=PHP V1=php-fpm-7.0 S2=HTTPD V2=apache-2.4
- S1=PHP V1=php-fpm-7.1 S2=HTTPD V2=apache-2.4
- S1=PHP V1=php-fpm-7.2 S2=HTTPD V2=apache-2.4
- S1=PHP V1=hhvm-latest S2=HTTPD V2=apache-2.4
# PHP vs Nginx stable
- S1=PHP V1=php-fpm-5.4 S2=HTTPD V2=nginx-stable
- S1=PHP V1=php-fpm-5.5 S2=HTTPD V2=nginx-stable
- S1=PHP V1=php-fpm-5.6 S2=HTTPD V2=nginx-stable
- S1=PHP V1=php-fpm-7.0 S2=HTTPD V2=nginx-stable
- S1=PHP V1=php-fpm-7.1 S2=HTTPD V2=nginx-stable
- S1=PHP V1=php-fpm-7.2 S2=HTTPD V2=nginx-stable
- S1=PHP V1=hhvm-latest S2=HTTPD V2=nginx-stable
# PHP vs Nginx mainline
- S1=PHP V1=php-fpm-5.4 S2=HTTPD V2=nginx-mainline
- S1=PHP V1=php-fpm-5.5 S2=HTTPD V2=nginx-mainline
- S1=PHP V1=php-fpm-5.6 S2=HTTPD V2=nginx-mainline
- S1=PHP V1=php-fpm-7.0 S2=HTTPD V2=nginx-mainline
- S1=PHP V1=php-fpm-7.1 S2=HTTPD V2=nginx-mainline
- S1=PHP V1=php-fpm-7.2 S2=HTTPD V2=nginx-mainline
- S1=PHP V1=hhvm-latest S2=HTTPD V2=nginx-mainline
###
### PHP vs MYSQL
###
# PHP vs MySQL 5.5
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=mysql-5.5
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=mysql-5.5
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=mysql-5.5
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=mysql-5.5
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=mysql-5.5
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=mysql-5.5
- S1=PHP V1=hhvm-latest S2=MYSQL V2=mysql-5.5
# PHP vs MySQL 5.6
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=mysql-5.6
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=mysql-5.6
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=mysql-5.6
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=mysql-5.6
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=mysql-5.6
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=mysql-5.6
- S1=PHP V1=hhvm-latest S2=MYSQL V2=mysql-5.6
# PHP vs MySQL 5.7
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=mysql-5.7
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=mysql-5.7
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=mysql-5.7
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=mysql-5.7
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=mysql-5.7
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=mysql-5.7
- S1=PHP V1=hhvm-latest S2=MYSQL V2=mysql-5.7
# PHP vs MySQL 8.0
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=mysql-8.0
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=mysql-8.0
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=mysql-8.0
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=mysql-8.0
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=mysql-8.0
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=mysql-8.0
- S1=PHP V1=hhvm-latest S2=MYSQL V2=mysql-8.0
# PHP vs MariaDB 5.5
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=mariadb-5.5
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=mariadb-5.5
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=mariadb-5.5
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=mariadb-5.5
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=mariadb-5.5
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=mariadb-5.5
- S1=PHP V1=hhvm-latest S2=MYSQL V2=mariadb-5.5
# PHP vs MariaDB 10.0
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=mariadb-10.0
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=mariadb-10.0
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=mariadb-10.0
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=mariadb-10.0
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=mariadb-10.0
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=mariadb-10.0
- S1=PHP V1=hhvm-latest S2=MYSQL V2=mariadb-10.0
# PHP vs MariaDB 10.1
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=mariadb-10.1
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=mariadb-10.1
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=mariadb-10.1
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=mariadb-10.1
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=mariadb-10.1
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=mariadb-10.1
- S1=PHP V1=hhvm-latest S2=MYSQL V2=mariadb-10.1
# PHP vs MariaDB 10.2
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=mariadb-10.2
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=mariadb-10.2
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=mariadb-10.2
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=mariadb-10.2
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=mariadb-10.2
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=mariadb-10.2
- S1=PHP V1=hhvm-latest S2=MYSQL V2=mariadb-10.2
# PHP vs MariaDB 10.3
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=mariadb-10.3
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=mariadb-10.3
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=mariadb-10.3
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=mariadb-10.3
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=mariadb-10.3
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=mariadb-10.3
- S1=PHP V1=hhvm-latest S2=MYSQL V2=mariadb-10.3
# PHP vs PerconaDB 5.5
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=percona-5.5
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=percona-5.5
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=percona-5.5
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=percona-5.5
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=percona-5.5
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=percona-5.5
- S1=PHP V1=hhvm-latest S2=MYSQL V2=percona-5.5
# PHP vs PerconaDB 5.6
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=percona-5.6
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=percona-5.6
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=percona-5.6
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=percona-5.6
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=percona-5.6
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=percona-5.6
- S1=PHP V1=hhvm-latest S2=MYSQL V2=percona-5.6
# PHP vs PerconaDB 5.7
- S1=PHP V1=php-fpm-5.4 S2=MYSQL V2=percona-5.7
- S1=PHP V1=php-fpm-5.5 S2=MYSQL V2=percona-5.7
- S1=PHP V1=php-fpm-5.6 S2=MYSQL V2=percona-5.7
- S1=PHP V1=php-fpm-7.0 S2=MYSQL V2=percona-5.7
- S1=PHP V1=php-fpm-7.1 S2=MYSQL V2=percona-5.7
- S1=PHP V1=php-fpm-7.2 S2=MYSQL V2=percona-5.7
- S1=PHP V1=hhvm-latest S2=MYSQL V2=percona-5.7
###
### PHP vs PostgreSQL
###
# PHP vs PgSQL 9.2
- S1=PHP V1=php-fpm-5.4 S2=PGSQL V2=9.2
- S1=PHP V1=php-fpm-5.5 S2=PGSQL V2=9.2
- S1=PHP V1=php-fpm-5.6 S2=PGSQL V2=9.2
- S1=PHP V1=php-fpm-7.0 S2=PGSQL V2=9.2
- S1=PHP V1=php-fpm-7.1 S2=PGSQL V2=9.2
- S1=PHP V1=php-fpm-7.2 S2=PGSQL V2=9.2
- S1=PHP V1=hhvm-latest S2=PGSQL V2=9.2
# PHP vs PgSQL 9.3
- S1=PHP V1=php-fpm-5.4 S2=PGSQL V2=9.3
- S1=PHP V1=php-fpm-5.5 S2=PGSQL V2=9.3
- S1=PHP V1=php-fpm-5.6 S2=PGSQL V2=9.3
- S1=PHP V1=php-fpm-7.0 S2=PGSQL V2=9.3
- S1=PHP V1=php-fpm-7.1 S2=PGSQL V2=9.3
- S1=PHP V1=php-fpm-7.2 S2=PGSQL V2=9.3
- S1=PHP V1=hhvm-latest S2=PGSQL V2=9.3
# PHP vs PgSQL 9.4
- S1=PHP V1=php-fpm-5.4 S2=PGSQL V2=9.4
- S1=PHP V1=php-fpm-5.5 S2=PGSQL V2=9.4
- S1=PHP V1=php-fpm-5.6 S2=PGSQL V2=9.4
- S1=PHP V1=php-fpm-7.0 S2=PGSQL V2=9.4
- S1=PHP V1=php-fpm-7.1 S2=PGSQL V2=9.4
- S1=PHP V1=php-fpm-7.2 S2=PGSQL V2=9.4
- S1=PHP V1=hhvm-latest S2=PGSQL V2=9.4
# PHP vs PgSQL 9.5
- S1=PHP V1=php-fpm-5.4 S2=PGSQL V2=9.5
- S1=PHP V1=php-fpm-5.5 S2=PGSQL V2=9.5
- S1=PHP V1=php-fpm-5.6 S2=PGSQL V2=9.5
- S1=PHP V1=php-fpm-7.0 S2=PGSQL V2=9.5
- S1=PHP V1=php-fpm-7.1 S2=PGSQL V2=9.5
- S1=PHP V1=php-fpm-7.2 S2=PGSQL V2=9.5
- S1=PHP V1=hhvm-latest S2=PGSQL V2=9.5
# PHP vs PgSQL 9.6
- S1=PHP V1=php-fpm-5.4 S2=PGSQL V2=9.6
- S1=PHP V1=php-fpm-5.5 S2=PGSQL V2=9.6
- S1=PHP V1=php-fpm-5.6 S2=PGSQL V2=9.6
- S1=PHP V1=php-fpm-7.0 S2=PGSQL V2=9.6
- S1=PHP V1=php-fpm-7.1 S2=PGSQL V2=9.6
- S1=PHP V1=php-fpm-7.2 S2=PGSQL V2=9.6
- S1=PHP V1=hhvm-latest S2=PGSQL V2=9.6
# PHP vs PgSQL 10.0
- S1=PHP V1=php-fpm-5.4 S2=PGSQL V2=10.0
- S1=PHP V1=php-fpm-5.5 S2=PGSQL V2=10.0
- S1=PHP V1=php-fpm-5.6 S2=PGSQL V2=10.0
- S1=PHP V1=php-fpm-7.0 S2=PGSQL V2=10.0
- S1=PHP V1=php-fpm-7.1 S2=PGSQL V2=10.0
- S1=PHP V1=php-fpm-7.2 S2=PGSQL V2=10.0
- S1=PHP V1=hhvm-latest S2=PGSQL V2=10.0
###
### Build Matrix definition
###
#matrix:
# allow_failures:
# - env: S1=PHP V1=hhvm-latest S2=HTTPD V2=apache-2.2
#
###
### Berfore Install
###
before_install:
# Get newer docker version
- max=100; i=0; while [ $i -lt $max ]; do if sudo apt-get update; then break; else i=$((i+1)); fi done
- max=100; i=0; while [ $i -lt $max ]; do if sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce; then break; else i=$((i+1)); fi done
# Get newer docker-compose version
- max=100; i=0; while [ $i -lt $max ]; do if curl -L --retry 100 --retry-max-time 0 https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` > docker-compose; then break; else i=$((i+1)); fi done
- chmod +x docker-compose
- sudo mv -f docker-compose /usr/local/bin
# List versions
- docker version
- docker-compose version
###
### Before Script
###
before_script:
# Disable services enabled by default
# http://docs.travis-ci.com/user/database-setup/#MySQL
- sudo /etc/init.d/mysql stop || true
- sudo /etc/init.d/postgresql stop || true
- sudo /etc/init.d/memcached stop || true
- sudo /etc/init.d/redis stop || true
- sudo /etc/init.d/mongodb stop || true
- sudo service mysql stop || true
- sudo service postgresql stop || true
- sudo service memcached stop || true
- sudo service redis stop || true
- sudo service mongodb stop || true
- netstat -tulpn
###
### Test
###
script:
- .tests/test_single.sh . "${S1}" "${V1}" "${S2}" "${V2}"