blackout/.drone.yml
Nolan Darilek 23f24136fd
Some checks failed
continuous-integration/drone/push Build is failing
Install build dependencies.
2022-03-25 00:41:49 -05:00

43 lines
1.2 KiB
YAML

kind: pipeline
type: docker
name: default
steps:
- name: test
image: rust
commands:
- rustup component add clippy rustfmt
- apt-get update -qq
- apt-get install -qqy llvm-dev libclang-dev clang libspeechd-dev pkg-config libx11-dev libasound2-dev libudev-dev libopenal-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libvulkan-dev
- cargo fmt --check
- cargo build --all
- cargo build --examples --all
- cargo test --verbose --all
- cargo clippy
- name: release
image: rust
commands:
- cargo publish
when:
event:
- tag
environment:
CARGO_REGISTRY_TOKEN:
from_secret: cargo_registry_token
- 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}}
when:
status: [success, failure]