2019-12-11 07:38:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
|
|
|
|
# Install cargo components
|
2019-12-13 12:39:14 +00:00
|
|
|
time rustup component add clippy
|
|
|
|
time rustup component add rustfmt
|
2020-01-30 22:59:11 +00:00
|
|
|
time which cargo-audit || cargo install cargo-audit
|
2019-12-11 07:38:46 +00:00
|
|
|
|
|
|
|
# Run cargo builds and checks
|
2020-01-21 08:32:50 +00:00
|
|
|
time cargo clippy --all-targets --all-features -- -D warnings
|
2019-12-13 12:39:14 +00:00
|
|
|
time cargo rustc --bin cloud-hypervisor -- -D warnings
|
2020-07-03 14:14:36 +00:00
|
|
|
time cargo rustc -p vhost_user_net --bin vhost_user_net -- -D warnings
|
2019-12-13 12:39:14 +00:00
|
|
|
time cargo test
|
|
|
|
time cargo audit
|
2020-07-07 11:06:40 +00:00
|
|
|
time cargo clippy --all-targets --no-default-features --features "pci,acpi,kvm" -- -D warnings
|
|
|
|
time cargo rustc --bin cloud-hypervisor --no-default-features --features "pci,acpi,kvm" -- -D warnings
|
|
|
|
time cargo clippy --all-targets --no-default-features --features "pci,kvm" -- -D warnings
|
|
|
|
time cargo rustc --bin cloud-hypervisor --no-default-features --features "pci,kvm" -- -D warnings
|
|
|
|
time cargo clippy --all-targets --no-default-features --features "mmio,kvm" -- -D warnings
|
|
|
|
time cargo rustc --bin cloud-hypervisor --no-default-features --features "mmio,kvm" -- -D warnings
|
2020-02-04 14:52:25 +00:00
|
|
|
time cargo fmt -- --check
|
2020-07-03 14:03:28 +00:00
|
|
|
time cargo build --all --release
|