mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-04-29 23:29:01 +00:00
34 lines
580 B
YAML
34 lines
580 B
YAML
language: rust
|
|
|
|
cache: cargo
|
|
|
|
before_cache: |
|
|
cargo install cargo-tarpaulin
|
|
cargo install cargo-update
|
|
cargo install-update --all
|
|
|
|
|
|
# before_cache:
|
|
# - rm -rf /home/travis/.cargo/registry
|
|
|
|
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
matrix:
|
|
allow_failures:
|
|
- rust: nightly
|
|
|
|
script:
|
|
- cargo clean
|
|
- cargo build
|
|
- cargo test
|
|
|
|
after_success: |
|
|
# 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
|