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:
Samuel Ortiz 2019-10-22 17:01:22 +03:00
parent de9eb3e0fa
commit 1387ac5571

View File

@ -6,6 +6,7 @@ rust:
before_script:
- rustup component add clippy
- rustup component add rustfmt
- cargo install --force cargo-audit
script:
- cargo rustc --bin cloud-hypervisor -- -D warnings
@ -19,6 +20,7 @@ script:
- cargo test
- cargo clippy --all-targets --all-features -- -D warnings
- find . -name "*.rs" | xargs rustfmt --check
- cargo audit
deploy:
provider: releases