From 98b0d46c768f47d27510846f55b6137d65bddbac Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 18 Mar 2022 15:46:42 -0500 Subject: [PATCH] Add Drone configuration. --- .drone.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d82f204 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,38 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: test + image: rust + commands: + - rustup component add clippy rustfmt + - 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}}