29 lines
528 B
YAML
29 lines
528 B
YAML
---
|
|
kind: pipeline
|
|
name: linters
|
|
steps:
|
|
- name: run shellcheck
|
|
image: alpine:latest
|
|
commands:
|
|
- apk add shellcheck
|
|
- shellcheck abra
|
|
|
|
- name: run unit tests
|
|
image: docker:dind
|
|
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
|