blob: 236135e79e599f2f6b59f1d602d2a2ccc90b96d8 [file] [log] [blame]
#!/bin/sh
set -e
SCRIPTPATH=$(dirname "$0")
export DATABASE_URL="/tmp/test_examples.db"
if [ -z "$BACKEND" ]; then
export BACKEND="sqlite"
fi
cd "$SCRIPTPATH"
if [ -z "${BACKEND##*sqlite*}" ]; then
find . -maxdepth 1 -mindepth 1 -type d | while read -r dir; do
cd "$dir"
../../../bin/diesel database reset
cargo build
cd ..
done
fi