bazzar/scripts/test.sh

7 lines
223 B
Bash
Executable File

#!/usr/bin/env zsh
psql postgres postgres -c "DROP DATABASE bazzar_test"
psql postgres postgres -c "CREATE DATABASE bazzar_test"
sqlx migrate run --database-url='postgres://postgres@localhost/bazzar_test'
cargo test --all