Merge pull request #162 from travisturner/makefile-helpers

add linter and test-race targets to makefile
This commit is contained in:
Travis Turner 2020-03-11 10:10:41 -05:00 committed by GitHub
commit d76e8fc17c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,10 @@ vendor: go.mod
test:
go test ./... -tags='$(BUILD_TAGS)' $(TESTFLAGS)
# Run test suite with race flag
test-race:
go test ./... -tags='$(BUILD_TAGS)' $(TESTFLAGS) -race -timeout 30m
bench:
go test ./... -bench=. -run=NoneZ -timeout=127m $(TESTFLAGS)
@ -152,6 +156,9 @@ docker-test:
golangci-lint: require-golangci-lint
golangci-lint run --skip-files '.*\.peg\.go'
# Alias
linter: golangci-lint
# Run gometalinter with custom flags
gometalinter: require-gometalinter vendor
GO111MODULE=off gometalinter --vendor --disable-all \