forked from vesoft-inc/nebula-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 752 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
.PHONY: build test fmt up up-ssl down ssl-test run-examples
default: build
build: fmt
go mod tidy
go build
test:
go mod tidy
go test -v -race
fmt:
go fmt
up:
cd ./nebula-docker-compose && docker-compose up -d
up-ssl:
cd ./nebula-docker-compose && enable_ssl=true docker-compose -f docker-compose-ssl.yaml up -d
down:
cd ./nebula-docker-compose && docker-compose down -v
ssl-test:
ssl_test=true go test -v -run TestSslConnection;
ssl-test-self-signed:
self_signed=true go test -v -run TestSslConnection;
run-examples:
go run basic_example/graph_client_basic_example.go && \
go run basic_example/parameter_example.go && \
go run gorountines_example/graph_client_goroutines_example.go && \
go run json_example/parse_json_example.go