2022-02-10 00:28:47 +01:00
|
|
|
pipeline:
|
|
|
|
fmt:
|
2022-02-11 19:52:09 +01:00
|
|
|
group: default
|
2022-02-10 00:28:47 +01:00
|
|
|
image: rust
|
|
|
|
commands:
|
|
|
|
- rustup component add rustfmt
|
|
|
|
- cargo fmt --all -- --check
|
|
|
|
|
|
|
|
clippy:
|
2022-02-11 19:52:09 +01:00
|
|
|
group: default
|
2022-02-10 00:28:47 +01:00
|
|
|
image: rust
|
|
|
|
commands:
|
|
|
|
- rustup component add clippy
|
|
|
|
- cargo clippy --all-features
|
|
|
|
|
2022-02-10 01:38:37 +01:00
|
|
|
test:
|
2022-02-11 19:52:09 +01:00
|
|
|
group: default
|
2022-02-10 01:38:37 +01:00
|
|
|
image: rust
|
|
|
|
commands:
|
|
|
|
- cargo test
|
|
|
|
|
2022-02-10 00:28:47 +01:00
|
|
|
build:
|
2022-02-11 19:52:09 +01:00
|
|
|
group: default
|
2022-02-10 00:28:47 +01:00
|
|
|
image: rust
|
|
|
|
commands:
|
|
|
|
- cargo build
|
|
|
|
- cargo build --release
|
|
|
|
|
|
|
|
build-deb:
|
2022-02-11 19:52:09 +01:00
|
|
|
group: default
|
2022-02-10 00:28:47 +01:00
|
|
|
image: rust
|
|
|
|
commands:
|
|
|
|
- cargo install cargo-deb
|
|
|
|
- cargo deb
|
2022-02-11 19:52:09 +01:00
|
|
|
|
|
|
|
doc:
|
|
|
|
group: default
|
|
|
|
image: rust
|
|
|
|
commands:
|
|
|
|
- cargo doc
|