Split up codecov steps

This commit is contained in:
Luke Murphy 2020-10-26 11:25:55 +01:00
parent 2b77cfebf9
commit 2250713c05
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 11 additions and 8 deletions

View File

@ -8,18 +8,21 @@ steps:
- apk add shellcheck - apk add shellcheck
- shellcheck abra - shellcheck abra
# - name: run unit tests - name: run unit tests
# image: docker:dind image: docker:dind
# commands: commands:
# - apk add bats curl - apk add bats curl
# - bats test.bats - bats test.bats
- name: collect code coverage - name: collect code coverage
image: robertstettner/drone-codecov image: alpine:latest
commands: commands:
- apk add bash-completion - apk add bash-completion
- mkdir -p coverage && kcov coverage abra - mkdir -p coverage
- /bin/drone-codecov -s coverage - kcov coverage abra
- name: send code coverage report to codecov
image: robertstettner/drone-codecov
secrets: secrets:
- codecov_token - codecov_token