2023-02-07 18:19:29 +00:00
|
|
|
image: alpine/3.17
|
|
|
|
packages:
|
|
|
|
- rust
|
2023-02-07 18:24:59 +00:00
|
|
|
- cargo
|
2023-02-07 18:29:10 +00:00
|
|
|
- openssl-dev
|
2023-02-07 18:39:28 +00:00
|
|
|
- postgresql
|
2023-02-07 18:19:29 +00:00
|
|
|
sources:
|
|
|
|
- https://git.e3t.cc/~core/trifid
|
|
|
|
tasks:
|
2023-02-07 18:39:28 +00:00
|
|
|
- setup: |
|
|
|
|
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
|
2023-02-07 18:19:29 +00:00
|
|
|
- check: |
|
2023-02-07 18:26:04 +00:00
|
|
|
cd /home/build/trifid
|
2023-02-07 18:30:10 +00:00
|
|
|
cargo check --locked
|
|
|
|
cargo clippy --locked
|
2023-02-07 18:19:29 +00:00
|
|
|
- build: |
|
2023-02-07 18:26:04 +00:00
|
|
|
cd /home/build/trifid
|
2023-02-07 18:30:10 +00:00
|
|
|
cargo build --locked
|