-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 772 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 772 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
28
29
30
31
32
33
34
35
36
37
38
SHELL := /bin/bash
.PHONY: all test
all: test
# Run all tests with verbose output
test:
@if [ "$(VERBOSE)" = "1" ]; then \
go test ./... -v; \
else \
go test ./...; \
fi
# Run a specific test case by name, e.g.:
# make test-case name="TestFeeCalculationCases/Basic_P2PKH_to_P2PKH_with_change"
test-case:
go test ./... -v -run "${name}"
# Docker Compose targets
.PHONY: compose-up compose-down compose-logs compose-build
compose-up:
@if [ "$(BUILD)" = "1" ]; then \
docker compose -f docker/compose.yml up --build; \
else \
docker compose -f docker/compose.yml up; \
fi
compose-down:
docker compose -f docker/compose.yml down
compose-logs:
docker compose -f docker/compose.yml logs -f
compose-build:
docker compose -f docker/compose.yml build