-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (42 loc) · 1.33 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
47
48
49
50
51
52
53
54
clean_ffjson_base:
@rm -rf types/ffjson-inception* ||:
@rm -f types/*_ffjson_expose.go ||:
@rm -rf operations/ffjson-inception* ||:
@rm -f operations/*_ffjson_expose.go ||:
clean_ffjson_gen:
@rm -f types/*_ffjson.go ||:
@rm -rf operations/*_ffjson.go ||:
generate: clean_ffjson_base
-go generate ./...
generate_new: clean_ffjson_base clean_ffjson_gen
-go generate ./...
init:
@echo "######################## -> install/update dev dependencies"
@go get -u golang.org/x/tools/cmd/stringer
@go get -u github.com/mitchellh/reflectwalk
@go get -u github.com/stretchr/objx
@go get -u github.com/cespare/reflex
@go get -u github.com/bradhe/stopwatch
test_api:
go test -v ./tests -run ^TestCommon$
go test -v ./tests -run ^TestSubscribe$
go test -v ./tests -run ^TestWalletAPI$
go test -v ./tests -run ^TestWebsocketAPI$
go test -v ./types
test_operations:
go test -v ./operations -run ^TestOperations$
test_blocks:
@echo "this is a long running test, abort with Ctrl + C"
go test -v ./tests -timeout 10m -run ^TestBlockRange$
buildgen:
@echo "build cybgen"
@go get -u -d ./gen
@go build -o /tmp/cybgen ./gen
@cp /tmp/cybgen $(GOPATH)/bin
opsamples: buildgen
@echo "exec cybgen"
@cd gen && cybgen
build: generate
go build -o /tmp/go-tmpbuild ./operations
watch:
reflex -g 'operations/*.go' make test_operations