activitypub-federation-rust/.woodpecker.yml

55 lines
1.4 KiB
YAML
Raw Normal View History

2023-03-25 02:18:51 +05:30
pipeline:
cargo_fmt:
2022-06-02 16:47:12 +05:30
image: rustdocker/rust:nightly
commands:
- /root/.cargo/bin/cargo fmt -- --check
2023-03-25 02:18:51 +05:30
cargo_check:
image: rust:1.70-bullseye
2022-11-26 21:42:48 +05:30
environment:
CARGO_HOME: .cargo
2022-06-02 16:47:12 +05:30
commands:
2023-03-02 04:49:10 +05:30
- cargo check --all-features --all-targets
2022-06-02 16:47:12 +05:30
2023-03-25 02:18:51 +05:30
cargo_clippy:
image: rust:1.70-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
2023-03-02 04:49:10 +05:30
- cargo clippy --all-targets --all-features --
2022-11-24 17:57:38 +05:30
-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
2023-03-02 04:49:10 +05:30
- cargo clippy --all-features -- -D clippy::unwrap_used
2022-06-02 16:47:12 +05:30
2023-03-25 02:18:51 +05:30
cargo_test:
image: rust:1.70-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
commands:
2023-03-02 04:49:10 +05:30
- cargo test --all-features --no-fail-fast
2023-03-25 02:18:51 +05:30
cargo_doc:
image: rust:1.70-bullseye
2023-03-02 04:49:10 +05:30
environment:
CARGO_HOME: .cargo
commands:
- cargo doc --all-features
2023-03-25 02:18:51 +05:30
cargo_run_actix_example:
image: rust:1.70-bullseye
environment:
2022-11-26 21:42:48 +05:30
CARGO_HOME: .cargo
commands:
2023-03-02 19:48:06 +05:30
- cargo run --example local_federation actix-web
2023-03-02 04:49:10 +05:30
2023-03-25 02:18:51 +05:30
cargo_run_axum_example:
image: rust:1.70-bullseye
environment:
CARGO_HOME: .cargo
commands:
2023-03-02 19:48:06 +05:30
- cargo run --example local_federation axum