You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
520 B

language: rust
rust:
- stable
- beta
- nightly
cache: cargo
matrix:
allow_failures:
- rust: nightly
fast_finish: true
before_cache:
- |
if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
cargo install -f cargo-tarpaulin
fi
script:
- cargo build --verbose --all
- cargo test --verbose --all
after_success:
- |
if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
echo "Uploaded code coverage"
fi