mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-10 23:11:01 +00:00
Merge pull request #162 from travisturner/makefile-helpers
add linter and test-race targets to makefile
This commit is contained in:
commit
d76e8fc17c
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue