1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-05-23 18:58:19 +00:00

improve travis

This commit is contained in:
Luro02 2020-02-08 10:45:48 +01:00
parent 4e298f76ef
commit ec07e6b64c
No known key found for this signature in database
GPG key ID: B66FD4F74501A9CF

View file

@ -2,11 +2,13 @@ language: rust
cache: cargo cache: cargo
before_cache: | before_cache:
cargo install cargo-tarpaulin || echo "cargo-tarpaulin already installed" - cargo install cargo-tarpaulin || echo "cargo-tarpaulin already installed"
cargo install cargo-update || echo "cargo-update already installed" - cargo install cargo-update || echo "cargo-update already installed"
cargo install cargo-audit || echo "cargo-audit already installed" - cargo install cargo-audit || echo "cargo-audit already installed"
cargo install-update --all - cargo install-update --all
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
# before_cache: # before_cache:
# - rm -rf /home/travis/.cargo/registry # - rm -rf /home/travis/.cargo/registry
@ -19,15 +21,16 @@ 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: # it's enough to run this once:
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then - |
cargo audit if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
fi 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!