set -e
set -x
export RUSTFLAGS="-D warnings"
cargo check
cargo check --features async_std
cargo check --features tokio_tp
cargo check --features tokio_ct
cargo check --features spawn_handle
cargo test --all-features
if [[ "$TRAVIS_RUST_VERSION" == nightly ]] || [[ $(rustup default) =~ "nightly" ]]
then
cargo doc --all-features --no-deps
fi