language: rust
cache: cargo
matrix:
include:
- rust: stable
os: linux
- rust: nightly
os: linux
- rust: stable
os: osx
- rust: nightly
os: osx
script:
- |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]
then
rustup component add rustfmt
cargo fmt --all -- --check
fi
- cargo test
- cargo test --features early-data
- cargo test ---no-default-features --features client
- cargo test ---no-default-features --features server
- cd examples/server
- cargo check
- cd ../../examples/client
- cargo check