pyo3/ci/travis/test.sh

19 lines
287 B
Bash
Raw Normal View History

#!/bin/sh
2018-05-21 13:25:09 +00:00
set -ex
2018-05-05 12:19:50 +00:00
cargo build --features $FEATURES
2018-11-15 11:13:57 +00:00
cargo clippy --features $FEATURES
cargo test --features $FEATURES
for example in examples/*; do
cd $example
if [ -f tox.ini ]; then
tox -e py
else
pip install -e .
pytest -v tests
fi
cd $TRAVIS_BUILD_DIR
done