Skip to content

Commit 8319caf

Browse files
teawaterjirfag
authored andcommitted
Makefile: Add target build
kata-containers's ci will re-build and re-install golangci-lint every time it did the staic check. So run test of golangci-lint with build will make it slow. Add target build to make golangci-lint just build but not test. Fixes: #458 Signed-off-by: Hui Zhu <[email protected]>
1 parent cad10b2 commit 8319caf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
test:
2-
go build -o golangci-lint ./cmd/golangci-lint
1+
test: build
32
GL_TEST_RUN=1 ./golangci-lint run -v
43
GL_TEST_RUN=1 ./golangci-lint run --fast --no-config -v --skip-dirs 'test/testdata_etc,pkg/golinters/goanalysis/(checker|passes)'
54
GL_TEST_RUN=1 ./golangci-lint run --no-config -v --skip-dirs 'test/testdata_etc,pkg/golinters/goanalysis/(checker|passes)'
65
GL_TEST_RUN=1 go test -v ./...
76

7+
build:
8+
go build -o golangci-lint ./cmd/golangci-lint
9+
810
test_race:
911
go build -race -o golangci-lint ./cmd/golangci-lint
1012
GL_TEST_RUN=1 ./golangci-lint run -v --deadline=5m

0 commit comments

Comments
 (0)