Browse Source

Add token for codecov & refactored some parts of drone.yml

pull/7643/head
Philipp Holzer 2 weeks ago
parent
commit
817a2f4a52
No account linked to committer's email address
2 changed files with 8 additions and 45 deletions
  1. 0
    1
      .codecov.yml
  2. 8
    44
      .drone.yml

+ 0
- 1
.codecov.yml View File

@@ -2,7 +2,6 @@ codecov:
2 2
   branch: develop
3 3
   ci:
4 4
     - drone.friendi.ca
5
-    - !scrutinizer-ci.com
6 5
 
7 6
 coverage:
8 7
   precision: 2

+ 8
- 44
.drone.yml View File

@@ -129,8 +129,8 @@ steps:
129 129
       - sleep 20
130 130
       - ./autotest.sh mariadb
131 131
       - wget https://codecov.io/bash -O codecov.sh
132
-      - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 2f4b253b-ca17-41d7-96e3-81623581c97d -f tests/autotest-clover.xml; fi"
133
-      - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 2f4b253b-ca17-41d7-96e3-81623581c97d -f tests/autotest-clover.xml; fi"
132
+      - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
133
+      - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
134 134
   environment:
135 135
       MYSQL_USER: friendica
136 136
       MYSQL_PASSWORD: friendica
@@ -231,14 +231,6 @@ volumes:
231 231
   - name: cache
232 232
     temp: {}
233 233
 
234
-trigger:
235
-  branch:
236
-    - master
237
-    - develop
238
-    - "*-rc"
239
-  event:
240
-    - pull_request
241
-    - push
242 234
 ---
243 235
 kind: pipeline
244 236
 name: redis-php7.1
@@ -251,8 +243,8 @@ steps:
251 243
     - sleep 20
252 244
     - NOINSTALL=true TEST_SELECTION=REDIS ./autotest.sh mysql
253 245
     - wget https://codecov.io/bash -O codecov.sh
254
-    - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 2f4b253b-ca17-41d7-96e3-81623581c97d -f tests/autotest-clover.xml; fi"
255
-    - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 2f4b253b-ca17-41d7-96e3-81623581c97d -f tests/autotest-clover.xml; fi"
246
+    - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
247
+    - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
256 248
   environment:
257 249
       REDIS_HOST: redis
258 250
 
@@ -308,15 +300,6 @@ services:
308 300
 - name: redis
309 301
   image: redis
310 302
 
311
-trigger:
312
-  branch:
313
-    - master
314
-    - develop
315
-    - "*-rc"
316
-  event:
317
-    - pull_request
318
-    - push
319
-
320 303
 ---
321 304
 kind: pipeline
322 305
 name: memcache-php7.1
@@ -329,8 +312,8 @@ steps:
329 312
       - sleep 20
330 313
       - NOINSTALL=true TEST_SELECTION=MEMCACHE ./autotest.sh mysql
331 314
       - wget https://codecov.io/bash -O codecov.sh
332
-      - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 2f4b253b-ca17-41d7-96e3-81623581c97d -f tests/autotest-clover.xml; fi"
333
-      - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 2f4b253b-ca17-41d7-96e3-81623581c97d -f tests/autotest-clover.xml; fi"
315
+      - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
316
+      - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
334 317
   environment:
335 318
       MEMCACHE_HOST: memcached
336 319
 
@@ -386,16 +369,6 @@ services:
386 369
 - name: memcached
387 370
   image: memcached
388 371
 
389
-trigger:
390
-  branch:
391
-    - master
392
-    - develop
393
-    - "*-rc"
394
-  event:
395
-    - pull_request
396
-    - push
397
-
398
-
399 372
 ---
400 373
 kind: pipeline
401 374
 name: memcached-php7.1
@@ -408,8 +381,8 @@ steps:
408 381
       - sleep 20
409 382
       - NOINSTALL=true TEST_SELECTION=MEMCACHED ./autotest.sh mysql
410 383
       - wget https://codecov.io/bash -O codecov.sh
411
-      - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 2f4b253b-ca17-41d7-96e3-81623581c97d -f tests/autotest-clover.xml; fi"
412
-      - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 2f4b253b-ca17-41d7-96e3-81623581c97d -f tests/autotest-clover.xml; fi"
384
+      - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
385
+      - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
413 386
   environment:
414 387
       MEMCACHED_HOST: memcached
415 388
 
@@ -464,12 +437,3 @@ steps:
464 437
 services:
465 438
 - name: memcached
466 439
   image: memcached
467
-
468
-trigger:
469
-  branch:
470
-    - master
471
-    - develop
472
-    - "*-rc"
473
-  event:
474
-    - pull_request
475
-    - push

Loading…
Cancel
Save