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