35 lines
732 B
YAML
35 lines
732 B
YAML
---
|
|
kind: pipeline
|
|
name: linters
|
|
steps:
|
|
- name: run shellcheck
|
|
image: koalaman/shellcheck-alpine:v0.7.1
|
|
commands:
|
|
- shellcheck abra
|
|
- shellcheck bin/*.sh
|
|
|
|
- name: run flake8
|
|
image: alpine/flake8:3.9.0
|
|
commands:
|
|
- flake8 --max-line-length 100 bin/app-json.py
|
|
|
|
- name: run unit tests
|
|
image: decentral1se/docker-dind-bats-kcov
|
|
commands:
|
|
- bats tests
|
|
|
|
- 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
|
|
trigger:
|
|
branch:
|
|
- main
|