trifid/.build.yml

26 lines
654 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:43:27 +00:00
- sudo
2023-02-07 18:19:29 +00:00
sources:
- https://git.e3t.cc/~core/trifid
tasks:
- setup: |
2023-02-07 18:43:27 +00:00
sudo -u postgres mkdir /var/lib/postgresql/data
sudo -u postgres chmod 0700 /var/lib/postgresql/data
sudo -u postgres initdb -D /var/lib/postgresql/data
sudo -u postgres 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