-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 824 Bytes
/
Makefile
File metadata and controls
41 lines (31 loc) · 824 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
39
40
41
.PHONY: build test test-race install clean lint
BINARY := lethe
CMD := ./cmd/lethe
build:
go build -o bin/$(BINARY) $(CMD)
install:
go install $(CMD)
test:
go test ./... -v -timeout 30s
test-race:
go test ./... -race -timeout 60s
test-short:
go test ./... -short -timeout 10s
lint:
go vet ./...
clean:
rm -rf bin/
# Run two local test nodes (Alice on :4242, Bob on :4243)
demo-alice:
mkdir -p /tmp/lethe-alice
go run $(CMD) keygen --data /tmp/lethe-alice 2>/dev/null || true
go run $(CMD) daemon --data /tmp/lethe-alice \
--listen 0.0.0.0:4242 \
--proxy 127.0.0.1:1080
demo-bob:
mkdir -p /tmp/lethe-bob
go run $(CMD) keygen --data /tmp/lethe-bob 2>/dev/null || true
go run $(CMD) daemon --data /tmp/lethe-bob \
--listen 0.0.0.0:4243 \
--proxy 127.0.0.1:1081 \
--bootstrap 127.0.0.1:4242