diff --git a/.drone.yml b/.drone.yml
index e260ae37c40de32ff8179e214ed0b60c8e296fd5..d6b36097b9679248fa2dc5b885c389ea6ff7dd27 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -6,6 +6,9 @@ pipeline:
     image: nextcloudci/jsunit:jsunit-5
     commands:
       - ./autotest-js.sh
+      - curl -o codecov.sh https://codecov.io/bash
+      - 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"
+      - 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"
     when:
       matrix:
         TESTS: jsunit
diff --git a/tests/karma.config.js b/tests/karma.config.js
index d80b5bbd7597b3dc89bd2c70e2d33b11eddc851e..f20672f4a55d3d912880d37a7199226b572a2e7e 100644
--- a/tests/karma.config.js
+++ b/tests/karma.config.js
@@ -264,7 +264,8 @@ module.exports = function(config) {
 			dir:'tests/karma-coverage',
 			reporters: [
 				{ type: 'html' },
-				{ type: 'cobertura' }
+				{ type: 'cobertura' },
+				{ type: 'lcovonly' },
 			]
 		},