mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-25 16:41:00 +00:00
improve travis
This commit is contained in:
parent
4e298f76ef
commit
ec07e6b64c
1 changed files with 15 additions and 12 deletions
27
.travis.yml
27
.travis.yml
|
@ -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!
|
||||||
|
|
Loading…
Reference in a new issue