Skip to content

Commit de53ede

Browse files
authored
Merge pull request #1380 from nextcloud/update-to-drone-0.5
Update drone.yml to 0.5
2 parents eab25d5 + e42cd6f commit de53ede

File tree

1 file changed

+67
-11
lines changed

1 file changed

+67
-11
lines changed

.drone.yml

Lines changed: 67 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,135 @@
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.6:
710
image: nextcloudci/php5.6:php5.6-2
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.6
1218
nodb-php7.0:
1319
image: nextcloudci/php7.0:php7.0-2
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: "7.0"
1827
nodb-php7.1:
1928
image: nextcloudci/php7.1:php7.1-3
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: 7.1
2436
sqlite-php5.6:
2537
image: nextcloudci/php5.6:php5.6-2
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=DB ./autotest.sh sqlite
41+
when:
42+
matrix:
43+
DB: sqlite
44+
PHP: 5.6
3045
sqlite-php7.0:
3146
image: nextcloudci/php7.0:php7.0-2
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: "7.0"
3654
sqlite-php7.1:
3755
image: nextcloudci/php7.1:php7.1-3
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: 7.1
4263
mysql-php5.6:
4364
image: nextcloudci/php5.6:php5.6-2
4465
commands:
4566
- sleep 15 # gives the database enough time to initialize
46-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
4767
- git submodule update --init
4868
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
69+
when:
70+
matrix:
71+
DB: mysql
72+
PHP: 5.6
4973
postgres-php5.6:
5074
image: nextcloudci/php5.6:php5.6-2
5175
commands:
5276
- sleep 10 # gives the database enough time to initialize
53-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
5477
- git submodule update --init
5578
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
79+
when:
80+
matrix:
81+
DB: postgres
82+
PHP: 5.6
5683
integration:
5784
image: nextcloudci/php7.0:php7.0-2
5885
commands:
59-
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
6086
- git submodule update --init
6187
- ./occ maintenance:install --admin-pass=admin
6288
- cd build/integration
6389
- ./run.sh
90+
when:
91+
matrix:
92+
TESTS: integration
6493

65-
compose:
94+
matrix:
95+
include:
96+
- TESTS: jsunit
97+
- DB: NODB
98+
PHP: 5.6
99+
- DB: NODB
100+
PHP: 7.0
101+
- DB: NODB
102+
PHP: 7.1
103+
- DB: sqlite
104+
PHP: 5.6
105+
- DB: sqlite
106+
PHP: 7.0
107+
- DB: sqlite
108+
PHP: 7.1
109+
- DB: mysql
110+
PHP: 5.6
111+
- DB: postgres
112+
PHP: 5.6
113+
- TESTS: integration
114+
115+
services:
66116
cache:
67117
image: redis
68118
postgres:
69119
image: postgres
70120
environment:
71121
- POSTGRES_USER=oc_autotest
72122
- POSTGRES_PASSWORD=oc_autotest
123+
when:
124+
matrix:
125+
DB: postgres
73126
mysql:
74127
image: mysql
75128
environment:
76129
- MYSQL_ROOT_PASSWORD=owncloud
77130
- MYSQL_USER=oc_autotest
78131
- MYSQL_PASSWORD=owncloud
79132
- MYSQL_DATABASE=oc_autotest
133+
when:
134+
matrix:
135+
DB: mysql

0 commit comments

Comments
 (0)