abra/.drone.yml
2020-12-24 01:07:01 +02:00

34 lines
689 B
YAML

---
kind: pipeline
name: linters
steps:
- name: run shellcheck
image: koalaman/shellcheck-alpine:v0.7.1
commands:
- shellcheck abra
- name: run unit tests
image: docker:dind
commands:
- apk add bats git bash
- bats tests
- name: collect code coverage
failure: ignore # until we fix this
image: kcov/kcov:38
commands:
- apt update && apt install -y bats git bash
- kcov . bats tests || true
- name: send code coverage report to codecov
failure: ignore # until we fix this
image: plugins/codecov
settings:
token:
from_secret: codecov_token
required: true
trigger:
branch:
- main