25 lines
689 B
YAML
25 lines
689 B
YAML
image: alpine/3.17
|
|
packages:
|
|
- rust
|
|
- cargo
|
|
- openssl-dev
|
|
- postgresql
|
|
sources:
|
|
- https://git.e3t.cc/~core/trifid
|
|
tasks:
|
|
- setup: |
|
|
su root -c "su postgres -c mkdir /var/lib/postgresql/data"
|
|
su root -c "su postgres -c chmod 0700 /var/lib/postgresql/data"
|
|
su root -c "su postgres -c initdb -D /var/lib/postgresql/data"
|
|
su root -c "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
|
|
cargo clippy --locked
|
|
- build: |
|
|
cd /home/build/trifid
|
|
cargo build --locked |