1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-04-28 06:38:54 +00:00
hls_m3u8/.travis.yml

43 lines
1 KiB
YAML
Raw Permalink Normal View History

2018-02-14 07:45:16 +00:00
language: rust
2019-09-22 18:33:40 +00:00
cache: cargo
2020-02-08 09:45:48 +00:00
before_cache:
- 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
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
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
2020-02-08 09:45:48 +00:00
script:
- cargo clean
- cargo build
- cargo test
2020-03-20 11:05:16 +00:00
- cargo test --features chrono
2020-03-29 11:01:30 +00:00
- cargo test --features backtrace
2019-10-03 14:36:45 +00:00
# it's enough to run this once:
2020-02-08 09:45:48 +00:00
- |
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
2020-02-23 17:53:47 +00:00
cargo tarpaulin -f --ignore-panics --ignore-tests --run-types Tests Doctests --out Xml
2019-09-22 18:33:40 +00:00
bash <(curl -s https://codecov.io/bash)
fi