Skip to content

Commit 582a30a

Browse files
committed
Hello codecov 🚀
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 36d76ee commit 582a30a

File tree

1 file changed

+54
-38
lines changed

1 file changed

+54
-38
lines changed

.drone.yml

Lines changed: 54 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ name: jsunit
44
steps:
55
- name: jsunit
66
image: nextcloudci/jsunit:jsunit-5
7+
environment:
8+
CODECOV_TOKEN:
9+
from_secret: CODECOV_TOKEN
710
commands:
811
- ./autotest-js.sh
912
- curl -o codecov.sh https://codecov.io/bash
10-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5; fi"
11-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5; fi"
13+
- wget https://codecov.io/bash -O codecov.sh
14+
- bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST
1215

1316
trigger:
1417
branch:
@@ -200,25 +203,28 @@ steps:
200203
commands:
201204
- git submodule update --init
202205
- name: sqlite-php7.3-samba-native
203-
image: nextcloudci/samba-native-php7.3:samba-native-php7.3-1
206+
image: nextcloudci/samba-native-php7.3:latest
207+
environment:
208+
CODECOV_TOKEN:
209+
from_secret: CODECOV_TOKEN
204210
commands:
205211
- smbd -D -FS &
206212
- ./autotest-external.sh sqlite smb-linux
207213
- wget https://codecov.io/bash -O codecov.sh
208-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
209-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
210-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
211-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
214+
- bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -f tests/autotest-external-clover-sqlite.xml
215+
- bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -f tests/autotest-external-clover-sqlite-smb-linux.xml
216+
212217
- name: sqlite-php7.3-samba-non-native
213-
image: nextcloudci/samba-non-native-php7.3:samba-non-native-php7.3-1
218+
image: nextcloudci/samba-non-native-php7.3:latest
219+
environment:
220+
CODECOV_TOKEN:
221+
from_secret: CODECOV_TOKEN
214222
commands:
215223
- smbd -D -FS &
216224
- ./autotest-external.sh sqlite smb-linux
217225
- wget https://codecov.io/bash -O codecov.sh
218-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
219-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
220-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
221-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
226+
- bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -f tests/autotest-external-clover-sqlite.xml
227+
- bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -f tests/autotest-external-clover-sqlite-smb-linux.xml
222228

223229
trigger:
224230
branch:
@@ -242,11 +248,11 @@ steps:
242248
commands:
243249
- apache2
244250
- ./autotest-external.sh sqlite webdav-apachedrone
245-
- wget https://codecov.io/bash -O codecov.sh
246-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
247-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
248-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-webdav-apachedrone.xml; fi"
249-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-webdav-apachedrone.xml; fi"
251+
# - wget https://codecov.io/bash -O codecov.sh
252+
# - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
253+
# - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
254+
# - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-webdav-apachedrone.xml; fi"
255+
# - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-webdav-apachedrone.xml; fi"
250256

251257
services:
252258
- name: cache
@@ -270,15 +276,15 @@ steps:
270276
commands:
271277
- git submodule update --init
272278
- name: nodb-php7.2
273-
image: nextcloudci/php7.2:php7.2-13
279+
image: nextcloudci/php7.2:latest
274280
commands:
275281
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
276282
- name: nodb-php7.3
277-
image: nextcloudci/php7.3:php7.3-4
283+
image: nextcloudci/php7.3:latest
278284
commands:
279285
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
280286
- name: nodb-php7.4
281-
image: nextcloudci/php7.4:2
287+
image: nextcloudci/php7.4:latest
282288
commands:
283289
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
284290

@@ -1996,13 +2002,15 @@ steps:
19962002
commands:
19972003
- git submodule update --init
19982004
- name: nodb-codecov
1999-
image: nextcloudci/php7.2:php7.2-13
2005+
image: nextcloudci/php7.4:latest
2006+
environment:
2007+
CODECOV_TOKEN:
2008+
from_secret: CODECOV_TOKEN
20002009
commands:
2001-
- phpenmod xdebug
2002-
- TEST_SELECTION=NODB ./autotest.sh sqlite
2003-
- wget https://codecov.io/bash -O codecov.sh
2004-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2005-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2010+
- phpenmod xdebug
2011+
- TEST_SELECTION=NODB ./autotest.sh sqlite
2012+
- wget https://codecov.io/bash -O codecov.sh
2013+
- bash codecov.sh -Z -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -f tests/autotest-clover-sqlite.xml
20062014

20072015
services:
20082016
- name: cache
@@ -2025,13 +2033,15 @@ steps:
20252033
commands:
20262034
- git submodule update --init
20272035
- name: db-codecov
2028-
image: nextcloudci/php7.2:php7.2-13
2036+
image: nextcloudci/php7.4:latest
2037+
environment:
2038+
CODECOV_TOKEN:
2039+
from_secret: CODECOV_TOKEN
20292040
commands:
20302041
- phpenmod xdebug
20312042
- TEST_SELECTION=QUICKDB ./autotest.sh sqlite
20322043
- wget https://codecov.io/bash -O codecov.sh
2033-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2034-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2044+
- bash codecov.sh -Z -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -f tests/autotest-clover-sqlite.xml
20352045

20362046
services:
20372047
- name: cache
@@ -2054,14 +2064,16 @@ steps:
20542064
commands:
20552065
- git submodule update --init
20562066
- name: object-store
2057-
image: nextcloudci/php7.2:php7.2-13
2067+
image: nextcloudci/php7.4:latest
2068+
environment:
2069+
CODECOV_TOKEN:
2070+
from_secret: CODECOV_TOKEN
20582071
commands:
20592072
- phpenmod xdebug
20602073
- ./tests/drone-wait-objectstore.sh
20612074
- TEST_SELECTION=PRIMARY-s3 ./autotest.sh sqlite
20622075
- wget https://codecov.io/bash -O codecov.sh
2063-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2064-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2076+
- bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -f tests/autotest-clover-sqlite.xml
20652077

20662078
services:
20672079
- name: fake-s3
@@ -2085,14 +2097,16 @@ steps:
20852097
commands:
20862098
- git submodule update --init
20872099
- name: object-store
2088-
image: nextcloudci/php7.2:php7.2-13
2100+
image: nextcloudci/php7.4:latest
2101+
environment:
2102+
CODECOV_TOKEN:
2103+
from_secret: CODECOV_TOKEN
20892104
commands:
20902105
- phpenmod xdebug
20912106
- ./tests/drone-wait-objectstore.sh
20922107
- TEST_SELECTION=PRIMARY-azure ./autotest.sh sqlite
20932108
- wget https://codecov.io/bash -O codecov.sh
2094-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2095-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2109+
- bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -f tests/autotest-clover-sqlite.xml
20962110

20972111
services:
20982112
- name: azurite
@@ -2190,14 +2204,16 @@ steps:
21902204
commands:
21912205
- git submodule update --init
21922206
- name: memcache-memcached
2193-
image: nextcloudci/php7.3-memcached:php7.3-memcached-3
2207+
image: nextcloudci/php7.3-memcached:latest
2208+
environment:
2209+
CODECOV_TOKEN:
2210+
from_secret: CODECOV_TOKEN
21942211
commands:
21952212
- phpenmod xdebug
21962213
- service memcached restart
21972214
- ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
21982215
- wget https://codecov.io/bash -O codecov.sh
2199-
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2200-
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
2216+
- bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -f tests/autotest-clover-sqlite.xml
22012217

22022218
trigger:
22032219
branch:

0 commit comments

Comments
 (0)