pyo3/ci/travis/test.sh
Alexander Niederbühl e2e4733b82 Test examples in user guide with travis
Test could only be activated for Python 3.5 and some tests had to be
ignored, see #381 and #387.
2019-03-09 23:54:28 +01:00

14 lines
295 B
Bash
Executable file

#!/bin/bash
set -ex
cargo clean
cargo test --features "$FEATURES num-complex"
if [ $TRAVIS_JOB_NAME = 'Minimum nightly' ]; then
cargo fmt --all -- --check
cargo clippy --features "$FEATURES num-complex"
fi
for example_dir in examples/*; do
tox -c "$example_dir/tox.ini" -e py
done