diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-09 10:54:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-09 10:54:57 +0100 |
commit | 72f45bbfc72336602f6be3740cc25e4144abd7b7 (patch) | |
tree | d40e71b4a65f23dc9f1a45452bcbe3bd58658851 | |
parent | 05cf1dab4ca7d69a837c2c9e890f078cef76c744 (diff) | |
parent | b6562cb3864f26b82f70665112a8ca01628ce1c4 (diff) | |
download | nextcloud-server-72f45bbfc72336602f6be3740cc25e4144abd7b7.tar.gz nextcloud-server-72f45bbfc72336602f6be3740cc25e4144abd7b7.zip |
Merge pull request #2055 from nextcloud/js-codecov
Javascript code coverage
-rw-r--r-- | .drone.yml | 3 | ||||
-rw-r--r-- | tests/karma.config.js | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml index e260ae37c40..d6b36097b96 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 d80b5bbd759..f20672f4a55 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' }, ] }, |