abra/.drone.yml

50 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2020-09-08 06:53:03 +00:00
---
kind: pipeline
name: linters
steps:
- name: run shellcheck
2020-12-23 22:55:57 +00:00
image: koalaman/shellcheck-alpine:v0.7.1
2020-09-08 06:53:03 +00:00
commands:
- shellcheck abra
- shellcheck bin/*.sh
2020-10-25 20:17:01 +00:00
2021-04-02 13:42:28 +00:00
- name: run flake8
image: alpine/flake8:3.9.0
commands:
2021-04-04 19:15:00 +00:00
- flake8 --max-line-length 100 bin/app-json.py
2021-04-02 13:42:28 +00:00
2020-10-26 10:25:55 +00:00
- name: run unit tests
2021-01-01 12:49:19 +00:00
image: decentral1se/docker-dind-bats-kcov
2020-10-26 10:25:55 +00:00
commands:
2020-11-01 14:52:36 +00:00
- bats tests
2020-10-26 10:20:17 +00:00
- name: collect code coverage
2021-01-01 12:49:19 +00:00
failure: ignore # until we fix this
image: decentral1se/docker-dind-bats-kcov
2020-10-26 10:20:17 +00:00
commands:
2020-11-01 14:52:36 +00:00
- kcov . bats tests || true
2020-10-26 10:25:55 +00:00
- name: send code coverage report to codecov
2021-01-01 12:49:19 +00:00
failure: ignore # until we fix this
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
- name: notify rocket chat
image: plugins/slack
settings:
webhook:
from_secret: rc_builds_url
username: comradebritney
channel: "internal.builds"
template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}"
when:
status:
- failure
2020-09-08 06:53:03 +00:00
trigger:
branch:
2020-09-08 06:54:54 +00:00
- main