buildfiles pt6

This commit is contained in:
c0repwn3r 2023-02-07 14:12:49 -05:00
parent 9256ff3eb8
commit 2599d56477
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 6 additions and 1 deletions

View File

@ -19,10 +19,15 @@ tasks:
cargo install sqlx-cli
/home/build/.cargo/bin/sqlx database create
/home/build/.cargo/bin/sqlx mig run
sudo -u postgres pg_ctl stop -D /var/lib/postgresql/data
- check: |
sudo -u postgres pg_ctl start -D /var/lib/postgresql/data
cd /home/build/trifid
cargo check --locked
cargo clippy --locked
sudo -u postgres pg_ctl stop -D /var/lib/postgresql/data
- build: |
sudo -u postgres pg_ctl start -D /var/lib/postgresql/data
cd /home/build/trifid
cargo build --locked
cargo build --locked
sudo -u postgres pg_ctl stop -D /var/lib/postgresql/data