diff --git a/.build.yml b/.build.yml index ad5f4b4..49fb90e 100644 --- a/.build.yml +++ b/.build.yml @@ -3,9 +3,21 @@ packages: - rust - cargo - openssl-dev + - postgresql sources: - https://git.e3t.cc/~core/trifid tasks: + - setup: | + mkdir /run/postgresql + chown postgres:postgres /run/postgresql/ + su postgres -c mkdir /var/lib/postgresql/data + su postgres -c chmod 0700 /var/lib/postgresql/data + su postgres -c initdb -D /var/lib/postgresql/data + su postgres -c pg_ctl start -D /var/lib/postgresql/data + cd /home/build/trifid + cargo install sqlx-cli + sqlx database create + sqlx mig run - check: | cd /home/build/trifid cargo check --locked