-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
68 lines (52 loc) · 1012 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# export vars from root env file
ifneq (,$(wildcard ./.env.test))
include .env.test
export
endif
.PHONY: dev
dev: up wait deploy
.PHONY: deploy
deploy:
bash ./deploy.sh
.PHONY: stop
stop:
docker-compose stop
.PHONY: up
up:
docker-compose up -d db pgadmin emulator
.PHONY: down
down:
docker-compose down
.PHONY: reset
reset: down dev
wait:
@echo "waiting..."
@sleep 2
.PHONY: test
test:
@go test ./go-contracts/... -v
@go test ./service/... -v
@go test -v
.PHONY: test-contracts
test-contracts:
@go test ./go-contracts/contracts_test.go -v
.PHONY: tests-with-emulator
tests-with-emulator:
./tests-with-emulator.sh
.PHONY: test-clean
test-clean: clean-testcache test
.PHONY: clean-testcache
clean-testcache:
@go clean -testcache
.PHONY: bench
bench:
@go test -bench=. -run=^a
.PHONY: emulator
emulator:
flow emulator -b 1s --persist
.PHONY: profiles
profiles:
@go test -cpuprofile cpu.prof -memprofile mem.prof
.PHONY: pprof
pprof:
@go tool pprof --http=":8888" flow-pds mem.prof