game/.drone.yml
zv0n 1462c2211b
All checks were successful
continuous-integration/drone/push Build is passing
CI: only send notification on failure or change of status
2022-09-28 14:48:22 +02:00

39 lines
820 B
YAML

---
kind: pipeline
type: kubernetes
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
- name: formatting-check
image: docker.zvon.tech/cppbuilder:v0.06
commands:
- cd mario
- 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
- name: notify
image: docker.zvon.tech/drone-email:v0.01
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 ]