From 3d87c90b16246c993c8f5ccc77150aca2b5fbc0d Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Mon, 17 Feb 2020 11:44:44 +0100 Subject: [PATCH] CI: Add cargo-audit step --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index e6f19a9..dbcc46e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,4 +15,19 @@ rust: matrix: allow_failure: - rust: "nightly" + include: + - name: Run cargo audit + rust: stable + env: TASK=audit fast_finish: true + +install: + - cargo build --verbose + - if [ "$TASK" = "audit" ]; then cargo install cargo-audit; fi + +script: + - if [ "$TASK" = "audit" ]; then + cargo audit; + else + cargo test --verbose; + fi