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

View File

@ -13,6 +13,16 @@ steps:
commands: commands:
- apk add bats curl - apk add bats curl
- bats test.bats - 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: trigger:
branch: branch:
- main - main