bevy_tts/.drone.yml

43 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2022-08-29 17:46:22 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: test
2022-08-29 22:20:30 +00:00
image: rust
2022-08-29 17:46:22 +00:00
commands:
- rustup component add clippy rustfmt
2022-08-29 18:32:05 +00:00
- apt-get update -qq
- apt-get install -qqy llvm-dev libclang-dev clang libspeechd-dev pkg-config libx11-dev libasound2-dev libudev-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libvulkan-dev libpulse-dev
2022-08-29 17:46:22 +00:00
- cargo fmt --check
2022-09-07 18:07:37 +00:00
- cargo test --no-default-features --features=speech_dispatcher_0_10
- cargo clippy --no-default-features --features=speech_dispatcher_0_10
2022-08-29 17:46:22 +00:00
- name: release
image: rust
commands:
- apt-get update -qq
- apt-get install -qqy llvm-dev libclang-dev clang libspeechd-dev pkg-config libx11-dev libasound2-dev libudev-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libvulkan-dev libpulse-dev
- cargo publish --no-verify
2022-08-29 17:46:22 +00:00
when:
ref:
- refs/tags/v*
2022-08-29 17:46:22 +00:00
environment:
CARGO_REGISTRY_TOKEN:
from_secret: cargo_registry_token
- name: discord notification
image: appleboy/drone-discord
when:
status: [success, failure]
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}}