Debian Codegraph @

Makefile

raw
1 # Copyright 2018 The Kubernetes Authors.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 .PHONY: verify
16 verify: verify-fmt verify-lint verify-apidiff vet test
17
18 .PHONY: test
19 test:
20 GO111MODULE=on go test -v -race ./...
21
22 .PHONY: verify-fmt
23 verify-fmt:
24 GO111MODULE=on ./hack/verify-gofmt.sh
25
26 .PHONY: verify-lint
27 verify-lint:
28 GO111MODULE=on ./hack/verify-golint.sh
29
30 .PHONY: verify-apidiff
31 verify-apidiff:
32 GO111MODULE=on ./hack/verify-apidiff.sh -r master
33
34 .PHONY: vet
35 vet:
36 GO111MODULE=on ./hack/verify-govet.sh
37
38 .PHONY: update-fmt
39 update-fmt:
40 gofmt -s -w .
41
42 # We set the maximum version of the go directive as 1.23 here
43 # because the oldest go directive that exists on our supported
44 # release branches in k/k is 1.23.
45 .PHONY: verify-go-directive
46 verify-go-directive:
47 ./hack/verify-go-directive.sh -g 1.23