078bea4345
This is really a test module, but the Rust convention is to put something like this under examples/, and when it lands, we can take advantage of "Project-based Examples for Cargo Projects" - RFC link at https://github.com/rust-lang/rfcs/pull/2517
18 lines
253 B
Bash
Executable file
18 lines
253 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
cargo build --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
|