Skip to content

Commit 8cb1bc5

Browse files
authored
Merge pull request #1382 from nextcloud/stable10-backport-1380
[stable10] update drone.yml to 0.5
2 parents 7c3934d + 9d0bd91 commit 8cb1bc5

1 file changed

Lines changed: 81 additions & 13 deletions

File tree

.drone.yml

Lines changed: 81 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,159 @@
1-
build:
1+
pipeline:
22
jsunit:
33
image: nextcloudci/jsunit:1.0.6
44
commands:
55
- ./autotest-js.sh
6+
when:
7+
matrix:
8+
TESTS: jsunit
69
nodb-php5.4:
710
image: nextcloudci/php5.4:1.0.7
811
commands:
9-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
1012
- git submodule update --init
1113
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
14+
when:
15+
matrix:
16+
DB: NODB
17+
PHP: 5.4
1218
nodb-php5.5:
1319
image: nextcloudci/php5.5:1.0.7
1420
commands:
15-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
1621
- git submodule update --init
1722
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
23+
when:
24+
matrix:
25+
DB: NODB
26+
PHP: 5.5
1827
nodb-php5.6:
1928
image: nextcloudci/php5.6:1.0.6
2029
commands:
21-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
2230
- git submodule update --init
2331
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
32+
when:
33+
matrix:
34+
DB: NODB
35+
PHP: 5.6
2436
nodb-php7.0:
2537
image: nextcloudci/php7.0:1.0.9
2638
commands:
27-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
2839
- git submodule update --init
2940
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
41+
when:
42+
matrix:
43+
DB: NODB
44+
PHP: "7.0"
3045
sqlite-php5.4:
3146
image: nextcloudci/php5.4:1.0.7
3247
commands:
33-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
3448
- git submodule update --init
3549
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
50+
when:
51+
matrix:
52+
DB: sqlite
53+
PHP: 5.4
3654
sqlite-php5.5:
3755
image: nextcloudci/php5.5:1.0.7
3856
commands:
39-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
4057
- git submodule update --init
4158
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
59+
when:
60+
matrix:
61+
DB: sqlite
62+
PHP: 5.5
4263
sqlite-php5.6:
4364
image: nextcloudci/php5.6:1.0.6
4465
commands:
45-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
4666
- git submodule update --init
4767
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
68+
when:
69+
matrix:
70+
DB: sqlite
71+
PHP: 5.6
4872
sqlite-php7.0:
4973
image: nextcloudci/php7.0:1.0.9
5074
commands:
51-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
5275
- git submodule update --init
5376
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
77+
when:
78+
matrix:
79+
DB: sqlite
80+
PHP: "7.0"
5481
mysql-php5.6:
5582
image: nextcloudci/php5.6:1.0.6
5683
commands:
5784
- sleep 15 # gives the database enough time to initialize
58-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
5985
- git submodule update --init
6086
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
87+
when:
88+
matrix:
89+
DB: mysql
90+
PHP: 5.6
6191
postgres-php5.6:
6292
image: nextcloudci/php5.6:1.0.6
6393
commands:
6494
- sleep 10 # gives the database enough time to initialize
65-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
6695
- git submodule update --init
6796
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
97+
when:
98+
matrix:
99+
DB: postgres
100+
PHP: 5.6
68101
integration:
69102
image: nextcloudci/php7.0:1.0.9
70103
commands:
71-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
72104
- git submodule update --init
73105
- ./occ maintenance:install --admin-pass=admin
74106
- cd build/integration
75107
- ./run.sh
108+
when:
109+
matrix:
110+
TESTS: integration
76111

77-
compose:
112+
113+
114+
matrix:
115+
include:
116+
- TESTS: integration
117+
- TESTS: jsunit
118+
- DB: NODB
119+
PHP: 5.4
120+
- DB: NODB
121+
PHP: 5.5
122+
- DB: NODB
123+
PHP: 5.6
124+
- DB: NODB
125+
PHP: 7.0
126+
- DB: sqlite
127+
PHP: 5.4
128+
- DB: sqlite
129+
PHP: 5.5
130+
- DB: sqlite
131+
PHP: 5.6
132+
- DB: sqlite
133+
PHP: 7.0
134+
- DB: mysql
135+
PHP: 5.6
136+
- DB: postgres
137+
PHP: 5.6
138+
139+
services:
78140
cache:
79141
image: redis
80142
postgres:
81143
image: postgres
82144
environment:
83145
- POSTGRES_USER=oc_autotest
84146
- POSTGRES_PASSWORD=oc_autotest
147+
when:
148+
matrix:
149+
DB: postgres
85150
mysql:
86151
image: mysql
87152
environment:
88153
- MYSQL_ROOT_PASSWORD=owncloud
89154
- MYSQL_USER=oc_autotest
90155
- MYSQL_PASSWORD=owncloud
91156
- MYSQL_DATABASE=oc_autotest
157+
when:
158+
matrix:
159+
DB: mysql

0 commit comments

Comments
 (0)