-
Notifications
You must be signed in to change notification settings - Fork 70
/
Makefile
42 lines (32 loc) · 1.19 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
.PHONY: build unit test fmt up up-ssl down ssl-test run-examples
default: build
build: fmt
go mod tidy
go build
unit:
go mod tidy
go test -v -race --covermode=atomic --coverprofile coverage.out
test:
go mod tidy
go test -v -race --tags=integration --covermode=atomic --coverprofile coverage.out
fmt:
go fmt
lint:
@test -z `gofmt -l *.go` || (echo "Please run 'make fmt' to format Go code" && exit 1)
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 --tags=integration -run TestSslConnection;
ssl_test=true go test -v --tags=integration -run TestSslSessionPool;
ssl-test-self-signed:
self_signed=true go test -v --tags=integration -run TestSslConnection;
run-examples:
go run examples/basic_example/graph_client_basic_example.go && \
go run examples/parameter_example/parameter_example.go && \
go run examples/goroutines_example/graph_client_goroutines_example.go && \
go run examples/json_example/parse_json_example.go && \
go run examples/session_pool_example/session_pool_example.go