2021-07-15 13:37:54 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: coopcloud.tech/abra
|
|
|
|
steps:
|
2021-07-15 21:00:33 +00:00
|
|
|
- name: make check
|
|
|
|
image: golang:1.16
|
|
|
|
commands:
|
|
|
|
- make check
|
|
|
|
|
2021-07-15 21:49:58 +00:00
|
|
|
- name: make static
|
|
|
|
image: golang:1.16
|
|
|
|
ignore: true # until we decide we all want this check
|
|
|
|
environment:
|
|
|
|
STATIC_CHECK_URL: honnef.co/go/tools/cmd/staticcheck
|
|
|
|
STATIC_CHECK_VERSION: v0.2.0
|
|
|
|
commands:
|
|
|
|
- go install $STATIC_CHECK_URL@$STATIC_CHECK_VERSION
|
|
|
|
- make static
|
|
|
|
|
2021-07-15 13:37:54 +00:00
|
|
|
- name: make build
|
|
|
|
image: golang:1.16
|
|
|
|
commands:
|
|
|
|
- make build
|
2021-07-15 20:29:31 +00:00
|
|
|
|
2021-07-19 13:50:02 +00:00
|
|
|
- name: make test
|
|
|
|
image: golang:1.16
|
|
|
|
commands:
|
|
|
|
- make test
|
|
|
|
|
2021-07-15 20:29:31 +00:00
|
|
|
- name: notify on failure
|
|
|
|
image: plugins/matrix
|
|
|
|
settings:
|
|
|
|
homeserver: https://matrix.autonomic.zone
|
|
|
|
roomid: "IFazIpLtxiScqbHqoa:autonomic.zone"
|
|
|
|
userid: "@autono-bot:autonomic.zone"
|
|
|
|
accesstoken:
|
|
|
|
from_secret: autono_bot_access_token
|
|
|
|
depends_on:
|
2021-07-15 21:00:33 +00:00
|
|
|
- make check
|
2021-07-15 20:29:31 +00:00
|
|
|
- make build
|
2021-07-19 13:50:02 +00:00
|
|
|
- make test
|
2021-07-15 20:29:31 +00:00
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|