sqlx/test.sh
2019-12-30 02:10:09 -08:00

11 lines
333 B
Bash
Executable file

#!/usr/bin/env bash
set -e
# Core
cargo test -p sqlx-core --all-features
# Postgres
env DATABASE_URL="postgres://" cargo test -p sqlx --no-default-features --features 'postgres macros uuid chrono'
# MySQL (requires sqlx database)
env DATABASE_URL="mysql:///sqlx" cargo test -p sqlx --no-default-features --features 'mysql chrono'