Browse Source

CI: Add cargo-audit step

pull/18/head
Danilo Bargen 5 years ago
parent
commit
3d87c90b16
  1. 15
      .travis.yml

15
.travis.yml

@ -15,4 +15,19 @@ rust:
matrix: matrix:
allow_failure: allow_failure:
- rust: "nightly" - rust: "nightly"
include:
- name: Run cargo audit
rust: stable
env: TASK=audit
fast_finish: true 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
Loading…
Cancel
Save