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
- shellcheck abra
# - name: run unit tests
# image: docker:dind
# commands:
# - apk add bats curl
# - bats test.bats
- name: run unit tests
image: docker:dind
commands:
- apk add bats curl
- bats test.bats
- name: collect code coverage
image: robertstettner/drone-codecov
image: alpine:latest
commands:
- apk add bash-completion
- mkdir -p coverage && kcov coverage abra
- /bin/drone-codecov -s coverage
- mkdir -p coverage
- kcov coverage abra
- name: send code coverage report to codecov
image: robertstettner/drone-codecov
secrets:
- codecov_token