mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-26 00:51:00 +00:00
added cargo-audit to travis
This commit is contained in:
parent
93283f61f1
commit
06a30d7704
1 changed files with 13 additions and 9 deletions
20
.travis.yml
20
.travis.yml
|
@ -3,15 +3,14 @@ language: rust
|
||||||
cache: cargo
|
cache: cargo
|
||||||
|
|
||||||
before_cache: |
|
before_cache: |
|
||||||
cargo install cargo-tarpaulin
|
cargo install cargo-tarpaulin || echo "cargo-tarpaulin already installed"
|
||||||
cargo install cargo-update
|
cargo install cargo-update || echo "cargo-update already installed"
|
||||||
|
cargo install cargo-audit || echo "cargo-audit already installed"
|
||||||
cargo install-update --all
|
cargo install-update --all
|
||||||
|
|
||||||
|
|
||||||
# before_cache:
|
# before_cache:
|
||||||
# - rm -rf /home/travis/.cargo/registry
|
# - rm -rf /home/travis/.cargo/registry
|
||||||
|
|
||||||
|
|
||||||
rust:
|
rust:
|
||||||
- stable
|
- stable
|
||||||
- beta
|
- beta
|
||||||
|
@ -20,10 +19,15 @@ matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
|
|
||||||
script:
|
script: |
|
||||||
- cargo clean
|
cargo clean
|
||||||
- cargo build
|
cargo build
|
||||||
- cargo test
|
cargo test
|
||||||
|
|
||||||
|
# it's enough to run this once:
|
||||||
|
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
|
||||||
|
cargo audit
|
||||||
|
fi
|
||||||
|
|
||||||
after_success: |
|
after_success: |
|
||||||
# this does require a -Z flag for Doctests, which is unstable!
|
# this does require a -Z flag for Doctests, which is unstable!
|
||||||
|
|
Loading…
Reference in a new issue