File tree 1 file changed +10
-5
lines changed 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -11,31 +11,36 @@ GOPATH ?= ${GOPATH}
11
11
E2E_DIR ?= test/e2e
12
12
GO_FLAGS ?= -v -a -ldflags=-s -mod=vendor
13
13
14
- .PHONY : vendor build clean test
14
+ ARGS ?=
15
15
16
16
default : build
17
17
18
+ .PHONY : vendor
18
19
vendor :
19
20
go mod vendor
20
21
21
22
$(BIN ) :
22
- go build $(GO_FLAGS ) -o $(BIN ) cmd/ $( APP ) / *
23
+ go build $(GO_FLAGS ) -o $(BIN ) $( CMD )
23
24
build : $(BIN )
24
25
26
+ .PHONY : run
27
+ run :
28
+ go run $(GO_FLAGS ) $(CMD ) $(ARGS )
29
+
25
30
install : build
26
31
install -m 0755 $(BIN ) $(GOPATH ) /bin/
27
32
33
+ .PHONY : clean
28
34
clean :
29
35
rm -rf $(OUTPUT_DIR ) > /dev/null
30
36
31
- clean-vendor :
32
- rm -rf ./vendor > /dev/null
33
-
34
37
test : test-unit test-e2e
35
38
39
+ .PHONY : test-unit
36
40
test-unit :
37
41
go test -failfast -race -coverprofile=coverage.txt -covermode=atomic -cover -v pkg/$(APP ) /*
38
42
43
+ .PHONY : test-e2e
39
44
test-e2e :
40
45
bats --recursive $(E2E_DIR )
41
46
You can’t perform that action at this time.
0 commit comments