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:
|
2022-09-28 12:46:44 +00:00
|
|
|
#- 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 {}
|
2022-09-28 12:32:19 +00:00
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
- success
|
2022-09-28 12:18:37 +00:00
|
|
|
- name: notify
|
2022-09-28 12:32:19 +00:00
|
|
|
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
|
2022-09-28 12:46:44 +00:00
|
|
|
from: Drone <drone@zvon.tech>
|