activitypub-federation-rust/.drone.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

2022-06-02 16:47:12 +05:30
---
kind: pipeline
name: amd64
platform:
os: linux
arch: amd64
steps:
- name: cargo fmt
image: rustdocker/rust:nightly
commands:
- /root/.cargo/bin/cargo fmt -- --check
- name: cargo check
image: rust:1.61-bullseye
2022-11-26 21:42:48 +05:30
environment:
CARGO_HOME: .cargo
2022-06-02 16:47:12 +05:30
commands:
- cargo check --all --all-targets
2022-06-02 16:47:12 +05:30
- name: cargo clippy
2022-11-24 17:57:38 +05:30
image: rust:1.65-bullseye
2022-11-26 21:42:48 +05:30
environment:
CARGO_HOME: .cargo
2022-06-02 16:47:12 +05:30
commands:
- rustup component add clippy
2022-11-24 17:57:38 +05:30
- cargo clippy --workspace --tests --all-targets --all-features --
-D warnings -D deprecated -D clippy::perf -D clippy::complexity
-D clippy::dbg_macro -D clippy::inefficient_to_string
-D clippy::items-after-statements -D clippy::implicit_clone
-D clippy::wildcard_imports -D clippy::cast_lossless
-D clippy::manual_string_new -D clippy::redundant_closure_for_method_calls
- cargo clippy --workspace --all-features -- -D clippy::unwrap_used
2022-06-02 16:47:12 +05:30
- name: cargo test
image: rust:1.61-bullseye
2022-06-02 16:47:12 +05:30
environment:
2022-11-26 21:42:48 +05:30
CARGO_HOME: .cargo
2022-06-02 16:47:12 +05:30
RUST_BACKTRACE: 1
commands:
- cargo test --workspace --no-fail-fast
- name: cargo run
image: rust:1.61-bullseye
environment:
2022-11-26 21:42:48 +05:30
CARGO_HOME: .cargo
RUST_BACKTRACE: 1
commands:
- cargo run -p activitypub_federation --example federation