mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 00:11:16 +00:00
"cargo fmt --all -- check" does not check all the other crates in the repository so replace this with a find command. In the long term it might be appropriate to use a cargo workspace to solve this problem. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
15 lines
273 B
YAML
15 lines
273 B
YAML
language: rust
|
|
|
|
rust:
|
|
- stable
|
|
|
|
before_script:
|
|
- rustup component add clippy
|
|
- rustup component add rustfmt
|
|
|
|
script:
|
|
- cargo build --release
|
|
- cargo test
|
|
- cargo clippy --all-targets --all-features -- -D warnings
|
|
- find . -name "*.rs" | xargs rustfmt --check
|