mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-04 04:25:45 +00:00
ci: Add cargo audit to the travis pipeline
cargo audit audits Cargo.lock for crates with security vulnerabvilities reported by the RustSec Advisory Database. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
de9eb3e0fa
commit
1387ac5571
@ -6,6 +6,7 @@ rust:
|
|||||||
before_script:
|
before_script:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
|
- cargo install --force cargo-audit
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo rustc --bin cloud-hypervisor -- -D warnings
|
- cargo rustc --bin cloud-hypervisor -- -D warnings
|
||||||
@ -19,6 +20,7 @@ script:
|
|||||||
- cargo test
|
- cargo test
|
||||||
- cargo clippy --all-targets --all-features -- -D warnings
|
- cargo clippy --all-targets --all-features -- -D warnings
|
||||||
- find . -name "*.rs" | xargs rustfmt --check
|
- find . -name "*.rs" | xargs rustfmt --check
|
||||||
|
- cargo audit
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
|
Loading…
Reference in New Issue
Block a user