makefile 285 B

1234567891011121314151617
  1. SHELL=/bin/bash
  2. GOFILES_NOVENDOR = $(shell go list ./... | grep -v /vendor/)
  3. all: vet fmt test
  4. fmt:
  5. go fmt $(GOFILES_NOVENDOR)
  6. vet:
  7. # do not check lostcancel, they are intentional.
  8. go vet -lostcancel=false $(GOFILES_NOVENDOR)
  9. test: vet
  10. ./scripts/test_all.sh
  11. .PHONY: all test