trifid/.build.yml

25 lines
689 B
YAML
Raw Normal View History

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
- postgresql
2023-02-07 18:19:29 +00:00
sources:
- https://git.e3t.cc/~core/trifid
tasks:
- setup: |
2023-02-07 18:41:29 +00:00
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
2023-02-07 18:19:29 +00:00
- check: |
2023-02-07 18:26:04 +00:00
cd /home/build/trifid
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
cargo build --locked