32 lines
906 B
YAML
32 lines
906 B
YAML
language: rust
|
|
rust:
|
|
- 1.37.0
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
# For cargo-tarpaulin
|
|
- libssl-dev
|
|
|
|
cache: cargo
|
|
|
|
before_script:
|
|
- rustup component add rustfmt
|
|
|
|
script:
|
|
- cargo build --verbose --release --all
|
|
- cargo fmt --all -- --check
|
|
- cargo test --verbose --release --all
|
|
- cargo test --verbose --release --all -- --ignored
|
|
|
|
before_cache:
|
|
- rm -rf "$TRAVIS_HOME/.cargo/registry/src"
|
|
- cargo install cargo-tarpaulin || echo "cargo-tarpaulin already installed"
|
|
- cargo install cargo-update || echo "cargo-update already installed"
|
|
- cargo install-update -a # update outdated cached binaries
|
|
|
|
after_success:
|
|
# Manually exclude packages that are going to be removed from the workspace
|
|
- travis_wait 35 cargo tarpaulin --release --timeout 600 --out Xml --packages "librustzcash,zcash_client_backend,zcash_primitives,zcash_proofs"
|
|
- bash <(curl -s https://codecov.io/bash)
|