2018-11-15 20:28:28 +00:00
|
|
|
#!/bin/bash
|
2019-01-09 20:14:13 +00:00
|
|
|
# Note: Avoid using "-e" globally, its behaviour may sometimes be convoluted.
|
|
|
|
# For more details, see http://mywiki.wooledge.org/BashFAQ/105
|
|
|
|
set -x
|
2018-05-04 16:20:28 +00:00
|
|
|
|
2019-01-09 20:14:13 +00:00
|
|
|
cargo fmt --all -- --check || exit 1
|
|
|
|
cargo test --features "$FEATURES" || exit 1
|
|
|
|
cargo clippy --features "$FEATURES" || exit 1
|
2018-05-05 12:19:50 +00:00
|
|
|
|
2019-01-09 20:14:13 +00:00
|
|
|
for example_dir in examples/*; do
|
|
|
|
tox -c "$example_dir/tox.ini" -e py || exit 1
|
2018-05-04 16:20:28 +00:00
|
|
|
done
|