-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
48 lines (36 loc) · 892 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
#include .env.example
#export
LOCAL_BIN:=$(CURDIR)/bin
PATH:=$(LOCAL_BIN):$(PATH)
.PHONY: build-fluent
build-fluent:
# @go build -ldflags "-X main.version=$(shell git describe --abbrev=0 --tags)" -o fluent
go build app/fluentcli/fluent.go
PHONY: test
test: ## run go tests
go test -v ./...
PHONY: PB
PB: ## build pocket-base
<<<<<<< HEAD
go build app/pb/pbserver.go
=======
go build app/pb/pbapp.go
>>>>>>> 5abef92 (refine codes)
integration-test: ### run integration-test
go clean -testcache && go test -v ./integration-test/...
.PHONY: integration-test
.PHONY: build-cli
build-cli:
go build app/fluentcli/fluent.go
.PHONY: build-pb
build-pb:
go build app/pb/pbapp.go
.PHONY: build-pb
build-pb:
go build app/pb/pbserver.go
.PHONY: format
format:
gofmt -l -w .
.PHONY: fmtcheck
fmtcheck: ## run gofmt and print detected files
@sh -c "'$(CURDIR)/ci/scripts/goformat.sh'"