blackout/.drone.yml

31 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2022-03-18 20:46:42 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: test
image: rust
commands:
- rustup component add clippy rustfmt
2022-03-25 05:41:49 +00:00
- apt-get update -qq
2022-12-19 20:13:32 +00:00
- apt-get install -qqy llvm-dev libclang-dev libspeechd-dev pkg-config libx11-dev libasound2-dev libudev-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libvulkan-dev cmake
2022-03-18 20:46:42 +00:00
- cargo fmt --check
2022-09-07 19:00:14 +00:00
- cargo test --no-default-features --features=speech_dispatcher_0_10
- cargo clippy --no-default-features --features=speech_dispatcher_0_10
2022-03-18 20:46:42 +00:00
- name: discord notification
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
tts: true
message: >
{{#success build.status}}
{{repo.name}} build {{build.number}} succeeded. <{{build.link}}>
{{else}}
{{repo.name}} build {{build.number}} failed. <{{build.link}}>
{{/success}}
2022-03-18 21:22:00 +00:00
when:
status: [success, failure]