Girish Kumar | 2ed051b | 2020-07-28 16:35:25 +0000 | [diff] [blame] | 1 | SHELL=/bin/bash |
2 | |||||
3 | GOFILES_NOVENDOR = $(shell go list ./... | grep -v /vendor/) | ||||
4 | |||||
5 | all: vet fmt test | ||||
6 | |||||
7 | fmt: | ||||
8 | go fmt $(GOFILES_NOVENDOR) | ||||
9 | |||||
10 | vet: | ||||
David K. Bainbridge | e05cf0c | 2021-08-19 03:16:50 +0000 | [diff] [blame^] | 11 | # do not check lostcancel, they are intentional. |
12 | go vet -lostcancel=false $(GOFILES_NOVENDOR) | ||||
Girish Kumar | 2ed051b | 2020-07-28 16:35:25 +0000 | [diff] [blame] | 13 | |
14 | test: vet | ||||
15 | ./scripts/test_all.sh | ||||
16 | |||||
17 | .PHONY: all test |