game/.drone.yml

39 lines
820 B
YAML
Raw Permalink Normal View History

2021-10-17 11:18:28 +00:00
---
kind: pipeline
2022-01-06 23:47:48 +00:00
type: kubernetes
2021-10-17 11:18:28 +00: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 11:18:28 +00:00
- name: formatting-check
2022-05-23 20:57:04 +00:00
image: docker.zvon.tech/cppbuilder:v0.06
2021-10-17 11:18:28 +00:00
commands:
- cd mario
2021-10-18 08:10:28 +00: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 {}
when:
status:
- failure
- success
2022-09-28 12:18:37 +00:00
- name: notify
image: docker.zvon.tech/drone-email:v0.01
2022-09-28 12:18:37 +00: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 ]