mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-07-05 01:12:36 +00:00
We use cargo vendor to generate a .cargo/config file and the vendor directory. Vendoring allows us to lock our dependencies and to modify them easily from the top level Cargo.toml. We vendor all dependencies, including the crates.io ones, which allows for network isolated builds. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
15 lines
293 B
YAML
15 lines
293 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" | grep -v "vendor/" | xargs rustfmt --check
|