abra/.drone.yml
2020-11-01 16:52:36 +02:00

32 lines
590 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 git bash
- bats tests
- name: collect code coverage
image: kcov/kcov:latest
commands:
- apk add bats git bash
- kcov . bats tests || true
- name: send code coverage report to codecov
image: plugins/codecov
settings:
token:
from_secret: codecov_token
required: true
trigger:
branch:
- main