language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin -f
fi
script:
- cargo clean
- cargo build
- cargo test --all
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
# Uncomment the following two lines create and upload a report for codecov.io
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi