2020-09-08 06:53:03 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: linters
|
|
|
|
steps:
|
|
|
|
- name: run shellcheck
|
2020-10-26 16:40:02 +00:00
|
|
|
image: koalaman/shellcheck-alpine:latest
|
2020-09-08 06:53:03 +00:00
|
|
|
commands:
|
2020-10-25 20:16:42 +00:00
|
|
|
- shellcheck abra
|
2020-10-25 20:17:01 +00:00
|
|
|
|
2020-10-26 10:25:55 +00:00
|
|
|
- name: run unit tests
|
|
|
|
image: docker:dind
|
|
|
|
commands:
|
2020-10-26 16:50:06 +00:00
|
|
|
- apk add bats
|
2020-10-26 10:25:55 +00:00
|
|
|
- bats test.bats
|
2020-10-26 10:20:17 +00:00
|
|
|
|
|
|
|
- name: collect code coverage
|
2020-10-26 10:28:19 +00:00
|
|
|
image: kcov/kcov:latest
|
2020-10-26 10:20:17 +00:00
|
|
|
commands:
|
2020-10-26 17:09:39 +00:00
|
|
|
- kcov . abra || true
|
2020-10-26 10:25:55 +00:00
|
|
|
|
|
|
|
- name: send code coverage report to codecov
|
2020-10-26 17:14:41 +00:00
|
|
|
image: plugins/codecov
|
2020-10-26 17:13:23 +00:00
|
|
|
settings:
|
2020-10-26 17:14:41 +00:00
|
|
|
token:
|
2020-10-26 17:13:23 +00:00
|
|
|
from_secret: codecov_token
|
2020-10-26 17:14:41 +00:00
|
|
|
required: true
|
2020-10-26 10:20:17 +00:00
|
|
|
|
2020-09-08 06:53:03 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
2020-09-08 06:54:54 +00:00
|
|
|
- main
|