-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
46 lines (32 loc) · 1 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
build:
cargo build
watch:
RUST_BACKTRACE=full cargo watch -s 'cargo test -- --nocapture'
next-watch:
cargo watch -s 'cargo nextest run'
check-code:
SQLX_OFFLINE=true cargo fmt --check --all
SQLX_OFFLINE=true cargo clippy --all-features
SQLX_OFFLINE=true cargo audit
test-in-ci:
DATABASE_URL=postgres://user:password@postgres:5432/pg cargo sqlx migrate run
make create-tmp-env-ci && \
SQLX_OFFLINE=true cargo nextest run --verbose --locked
cli-run:
SQLX_OFFLINE=true cargo run --bin stablesats run
build-x86_64-unknown-linux-musl-release:
SQLX_OFFLINE=true cargo build --release --locked --target x86_64-unknown-linux-musl
build-x86_64-apple-darwin-release:
bin/osxcross-compile.sh
clean-deps:
docker compose down
start-deps:
docker compose up -d integration-deps
start-deps-local:
docker compose up -d postgres
reset-deps: clean-deps start-deps setup-db
reset-deps-local: clean-deps start-deps-local setup-db
setup-db:
cargo sqlx migrate run
create-tmp-env-ci:
envsubst < .env.ci > tmp.env.ci