Files

39 lines
820 B
YAML
Raw Permalink Normal View History

2021-10-17 13:18:28 +02:00
---
kind: pipeline
2022-01-07 00:47:48 +01:00
type: kubernetes
2021-10-17 13:18:28 +02:00
name: mario-build
platform:
os: linux
arch: arm64
steps:
- name: build
image: docker.zvon.tech/cppbuilder:v0.06
commands:
- cd mario
- mkdir build
- cd build
- cmake ..
- make
2021-10-17 13:18:28 +02:00
- name: formatting-check
2022-05-23 22:57:04 +02:00
image: docker.zvon.tech/cppbuilder:v0.06
2021-10-17 13:18:28 +02:00
commands:
- cd mario
2021-10-18 10:10:28 +02:00
- find . -path "./build" -prune -or -path "./.cache" -prune -or -iname "*.cpp" -or -iname "*.hpp" -print | xargs -P0 -I{} clang-format -style=file --dry-run -Werror {}
2022-09-28 14:32:19 +02:00
when:
status:
- failure
- success
2022-09-28 14:18:37 +02:00
- name: notify
2022-09-28 14:32:19 +02:00
image: docker.zvon.tech/drone-email:v0.01
2022-09-28 14:18:37 +02:00
settings:
host: mail.zvon.tech
username:
from_secret: email_user
password:
from_secret: email_password
port: 465
from: Drone <drone@zvon.tech>
when:
status: [ changed, failure ]