-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
45 lines (32 loc) · 981 Bytes
/
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
watch:
RUST_BACKTRACE=full cargo watch -s 'cargo test -- --nocapture'
next-watch:
cargo watch -s 'cargo nextest run'
test-in-ci:
cargo nextest run --verbose --locked
check-code:
cargo fmt --check --all
cargo clippy --all-features
cargo audit
build:
cargo build --locked
start-deps:
docker compose -p $$(basename "$$PWD") -f ./vendor/galoy-quickstart/docker-compose.yml up -d
clean-deps:
docker compose -p $$(basename "$$PWD") -f ./vendor/galoy-quickstart/docker-compose.yml down -t 3
reset-deps: clean-deps start-deps
bats:
bats -t tests/e2e
e2e: build reset-deps bats
prep-deps:
cd dev && vendir sync
cd dev/vendor \
&& source envs/.envrc \
&& envsubst < envs/.env.ci > ../.env.galoy \
&& rm -rf envs
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
build-x86_64-pc-windows-gnu-release:
bin/wincross-compile.sh