Generate js codecov coverage

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2016-11-08 20:42:51 +01:00
parent 05cf1dab4c
commit b6562cb386
No known key found for this signature in database
GPG key ID: 1E152838F164D13B
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -264,7 +264,8 @@ module.exports = function(config) {
dir:'tests/karma-coverage',
reporters: [
{ type: 'html' },
{ type: 'cobertura' }
{ type: 'cobertura' },
{ type: 'lcovonly' },
]
},