-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
27 lines (20 loc) · 856 Bytes
/
Copy pathjustfile
File metadata and controls
27 lines (20 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
check:
cd backend && cargo fmt --check && cargo clippy --all-targets --all-features -- -D warnings && cargo test
frontend-build:
cd frontend && npm ci && npm run lint && npm run build
backend-build:
cd backend && cargo build --release
build: frontend-build backend-build
run:
cd backend && cargo run
db-up:
docker compose up -d postgres
db-down:
docker compose stop postgres
test-with-db:
#!/usr/bin/env bash
set -euo pipefail
trap 'docker compose stop postgres' EXIT
docker compose up -d postgres
until docker compose exec -T postgres pg_isready -U epp_lab -d epp_lab >/dev/null 2>&1; do sleep 1; done
DATABASE_URL=postgres://epp_lab:epp_lab@localhost:5433/epp_lab sh -c 'cd backend && cargo fmt --check && cargo clippy --all-targets --all-features -- -D warnings && cargo test -- --include-ignored'