blob: 3ec228989caf5ab744cb04257df14dcadbde245b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash -e
# Don't put anything here that routinely takes longer than a second or so to
# run. It gets old fast. That's why this doesn't run tests, for example.
tools/check-lockfiles
tools/check-format
tools/check-lint
# Make sure the prepared statement data in .sqlx is up to date. Requires
# `cargo-sqlx` (`cargo install cargo-sqlx`).
export DATABASE_URL=sqlite://pilcrow.db.pre-commit?mode=rwc
rm -f pilcrow.db.pre-commit
cargo sqlx migrate run
cargo sqlx prepare --check
|