set -e
set -x
export RUSTFLAGS="-D warnings"
cargo check
cargo check --features async_global
cargo check --features async_std
cargo check --features glommio
cargo check --features tokio_tp
cargo check --features tokio_ct
cargo check --features localpool
cargo check --features threadpool
if [ -z "$GITHUB_ACTION" ]
then
cargo test --all-features
cargo test --features "async_global async_std bindgen localpool threadpool tokio_ct tokio_tp glommio"
cargo test --features "timer async_global async_std localpool threadpool tokio_ct tokio_tp glommio"
else
cargo test --features "async_global async_global_tokio async_std async_std_tokio localpool threadpool tokio_ct tokio_tp tokio_io tokio_timer timer tracing bindgen notwasm"
cargo test --features "async_global async_std bindgen localpool threadpool tokio_ct tokio_tp"
cargo test --features "timer async_global async_std localpool threadpool tokio_ct tokio_tp"
fi
cargo test --features "tokio_io async_global async_std tokio_ct tokio_tp"
cargo test --features "tokio_timer tokio_ct tokio_tp"