1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-05-12 13:33:02 +00:00
hls_m3u8/.travis.yml

38 lines
835 B
YAML
Raw Normal View History

2018-02-14 07:45:16 +00:00
language: rust
2019-09-22 18:33:40 +00:00
cache: cargo
before_cache: |
2019-10-03 14:36:45 +00:00
cargo install cargo-tarpaulin || echo "cargo-tarpaulin already installed"
cargo install cargo-update || echo "cargo-update already installed"
cargo install cargo-audit || echo "cargo-audit already installed"
cargo install-update --all
2019-09-22 18:33:40 +00:00
# before_cache:
# - rm -rf /home/travis/.cargo/registry
2018-02-14 07:45:16 +00:00
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
2019-10-03 14:36:45 +00:00
script: |
cargo clean
cargo build
cargo test
# it's enough to run this once:
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
cargo audit
fi
2018-02-14 07:45:16 +00:00
after_success: |
2019-09-22 18:33:40 +00:00
# this does require a -Z flag for Doctests, which is unstable!
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo tarpaulin --run-types Tests Doctests --out Xml
bash <(curl -s https://codecov.io/bash)
fi