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
|
2022-06-02 18:00:08 +05:30
|
|
|
image: rust:1.61-bullseye
|
2022-06-02 16:47:12 +05:30
|
|
|
commands:
|
2022-06-02 18:00:08 +05:30
|
|
|
- cargo check --all --all-targets
|
2022-06-02 16:47:12 +05:30
|
|
|
|
|
|
|
- name: cargo clippy
|
2022-06-02 18:00:08 +05:30
|
|
|
image: rust:1.61-bullseye
|
2022-06-02 16:47:12 +05:30
|
|
|
commands:
|
|
|
|
- rustup component add clippy
|
|
|
|
- cargo clippy --workspace --tests --all-targets --all-features -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
|
|
|
|
- cargo clippy --workspace -- -D clippy::unwrap_used
|
|
|
|
|
|
|
|
- name: cargo test
|
2022-06-02 18:00:08 +05:30
|
|
|
image: rust:1.61-bullseye
|
2022-06-02 16:47:12 +05:30
|
|
|
environment:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
commands:
|
|
|
|
- cargo test --workspace --no-fail-fast
|
2022-06-02 18:00:08 +05:30
|
|
|
|
|
|
|
- name: cargo run
|
|
|
|
image: rust:1.61-bullseye
|
|
|
|
environment:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
commands:
|
|
|
|
- cargo run -p activitypub_federation --example federation
|