Merge pull request #2055 from nextcloud/js-codecov
Javascript code coverage
This commit is contained in:
commit
72f45bbfc7
|
@ -6,6 +6,9 @@ pipeline:
|
||||||
image: nextcloudci/jsunit:jsunit-5
|
image: nextcloudci/jsunit:jsunit-5
|
||||||
commands:
|
commands:
|
||||||
- ./autotest-js.sh
|
- ./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:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
TESTS: jsunit
|
TESTS: jsunit
|
||||||
|
|
|
@ -264,7 +264,8 @@ module.exports = function(config) {
|
||||||
dir:'tests/karma-coverage',
|
dir:'tests/karma-coverage',
|
||||||
reporters: [
|
reporters: [
|
||||||
{ type: 'html' },
|
{ type: 'html' },
|
||||||
{ type: 'cobertura' }
|
{ type: 'cobertura' },
|
||||||
|
{ type: 'lcovonly' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue