32 lines
587 B
YAML
32 lines
587 B
YAML
---
|
|
kind: pipeline
|
|
name: linters
|
|
steps:
|
|
- name: run shellcheck
|
|
image: koalaman/shellcheck-alpine:latest
|
|
commands:
|
|
- shellcheck abra
|
|
|
|
- name: run unit tests
|
|
image: docker:dind
|
|
commands:
|
|
- apk add bats
|
|
- bats test.bats
|
|
|
|
- name: collect code coverage
|
|
image: kcov/kcov:latest
|
|
commands:
|
|
- mkdir -p coverage
|
|
- kcov coverage abra || true
|
|
|
|
- name: send code coverage report to codecov
|
|
image: robertstettner/drone-codecov
|
|
commands:
|
|
- codecov -s coverage
|
|
secrets:
|
|
- codecov_token
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|