language: rust
sudo: false
env:
global:
- RUST_BACKTRACE=1
- RUSTFLAGS="-D warnings"
cache: cargo
rust:
matrix:
include:
- rust: stable
install:
- rustup component add rustfmt
- rustup component add clippy
before_script:
- cargo fmt -- --check
- cargo clippy
- rust: nightly
script:
- cargo test --all -- --nocapture
- cargo test --no-default-features --features prost-codec --all -- --nocapture
- cargo test --no-default-features --features grpcio-protobuf-codec --all -- --nocapture
- cargo test --no-default-features --features grpcio-prost-codec --all -- --nocapture