Browse Source
Merge pull request #18 from dbrgn/ci-cargo-audit
CI: Add cargo-audit step
pull/19/head
Rodolphe Bréard
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
15 additions and
0 deletions
-
.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 |