Add code coverage CI

This commit is contained in:
Luke Murphy 2020-10-26 11:20:17 +01:00
parent 1e059ffe7f
commit 6d6208a63c
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,16 @@ steps:
commands:
- apk add bats curl
- bats test.bats
- name: collect code coverage
image: robertstettner/drone-codecov
commands:
- apk add kcov
- mkdir -p coverage && kcov coverage abra
- /bin/drone-codecov -s coverage
secrets:
- codecov_token
trigger:
branch:
- main