pyo3/ci/travis/test.sh

13 lines
378 B
Bash
Raw Normal View History

2018-11-15 20:28:28 +00:00
#!/bin/bash
# Note: Avoid using "-e" globally, its behaviour may sometimes be convoluted.
# For more details, see http://mywiki.wooledge.org/BashFAQ/105
set -x
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
for example_dir in examples/*; do
tox -c "$example_dir/tox.ini" -e py || exit 1
done