forked from owncloud/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
222 lines (206 loc) · 4.82 KB
/
.drone.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
workspace:
base: /drone
path: src
clone:
git:
image: plugins/git
depth: 1
pipeline:
restore:
image: plugins/s3-cache:1
pull: true
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
restore: true
when:
local: false
event: [push, pull_request]
branch: [master, stable10, stable9.1, stable9]
composer:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- ./tests/drone/composer-install.sh
when:
event: [push, pull_request]
branch: [master, stable10, stable9.1, stable9]
npm:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- ./tests/drone/npm-install.sh
when:
event: [push, pull_request]
branch: [master, stable10, stable9.1, stable9]
bower:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- ./tests/drone/bower-install.sh
when:
event: [push, pull_request]
branch: [master, stable10, stable9.1, stable9]
rebuild:
image: plugins/s3-cache:1
pull: true
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
rebuild: true
mount:
- lib/composer
- core/vendor
- build/node_modules
when:
local: false
event: [ push ]
branch: [ master, stable10, stable9.1, stable9 ]
flush:
image: plugins/s3-cache:1
pull: true
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
flush: true
flush_age: 14
when:
local: false
event: [push]
branch: [master, stable10, stable9.1, stable9]
coverage:
image: owncloudci/php:${PHP_VERSION}
pull: true
group: test
environment:
- PHP_VERSION=${PHP_VERSION}
- DB_TYPE=${DB_TYPE}
commands:
- ./tests/drone/test-coverage.sh
when:
event: [push, pull_request]
branch: [master, stable10, stable9.1, stable9]
matrix:
TEST_SUITE: coverage
codecov:
image: plugins/codecov:1
secrets: [codecov_token]
pull: true
files:
- tests/autotest-clover-${DB_TYPE}.xml
when:
event: [push, pull_request]
branch: [master, stable10, stable9.1, stable9]
matrix:
TEST_SUITE: coverage
services:
mariadb:
image: mariadb:10.3
environment:
- MYSQL_USER=owncloud
- MYSQL_PASSWORD=owncloud
- MYSQL_DATABASE=owncloud
- MYSQL_ROOT_PASSWORD=owncloud
when:
matrix:
DB_TYPE: mariadb
mysql:
image: mysql:5.7
environment:
- MYSQL_USER=owncloud
- MYSQL_PASSWORD=owncloud
- MYSQL_DATABASE=owncloud
- MYSQL_ROOT_PASSWORD=owncloud
when:
matrix:
DB_TYPE: mysql
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=owncloud
- POSTGRES_PASSWORD=owncloud
- POSTGRES_DB=owncloud
when:
matrix:
DB_TYPE: postgres
# oracle:
# image: oracle:x.x
# environment:
# - ORACLE_USER=owncloud
# - ORACLE_PASSWORD=owncloud
# - ORACLE_DB=owncloud
# when:
# matrix:
# DB_TYPE: oracle
matrix:
include:
# # PHP 5.6
# - PHP_VERSION: 5.6
# DB_TYPE: sqlite
# TEST_SUITE: phpunit
# - PHP_VERSION: 5.6
# DB_TYPE: mariadb
# TEST_SUITE: phpunit
# - PHP_VERSION: 5.6
# DB_TYPE: mysql
# TEST_SUITE: phpunit
# - PHP_VERSION: 5.6
# DB_TYPE: postgres
# TEST_SUITE: phpunit
# # - PHP_VERSION: 5.6
# # DB_TYPE: oracle
# # TEST_SUITE: phpunit
#
# # PHP 7.0
# - PHP_VERSION: 7.0
# DB_TYPE: sqlite
# TEST_SUITE: phpunit
# - PHP_VERSION: 7.0
# DB_TYPE: mariadb
# TEST_SUITE: phpunit
# - PHP_VERSION: 7.0
# DB_TYPE: mysql
# TEST_SUITE: phpunit
# - PHP_VERSION: 7.0
# DB_TYPE: postgres
# TEST_SUITE: phpunit
# # - PHP_VERSION: 7.0
# # DB_TYPE: oracle
# # TEST_SUITE: phpunit
#
# # PHP 7.1
# - PHP_VERSION: 7.1
# DB_TYPE: sqlite
# TEST_SUITE: phpunit
# - PHP_VERSION: 7.1
# DB_TYPE: mariadb
# TEST_SUITE: phpunit
# - PHP_VERSION: 7.1
# DB_TYPE: mysql
# TEST_SUITE: phpunit
# - PHP_VERSION: 7.1
# DB_TYPE: postgres
# TEST_SUITE: phpunit
# # - PHP_VERSION: 7.1
# # DB_TYPE: oracle
# # TEST_SUITE: phpunit
#
# # PHP 7.2
# - PHP_VERSION: 7.2
# DB_TYPE: sqlite
# TEST_SUITE: phpunit
# - PHP_VERSION: 7.2
# DB_TYPE: mariadb
# TEST_SUITE: phpunit
# - PHP_VERSION: 7.2
# DB_TYPE: mysql
# TEST_SUITE: phpunit
# - PHP_VERSION: 7.2
# DB_TYPE: postgres
# TEST_SUITE: phpunit
# # - PHP_VERSION: 7.2
# # DB_TYPE: oracle
# # TEST_SUITE: phpunit
#
# # Integration
# - PHP_VERSION: 7.1
# DB_TYPE: sqlite
# TEST_SUITE: integration
# Code Coverage Computation
- PHP_VERSION: 7.1
DB_TYPE: sqlite
TEST_SUITE: coverage