-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 953 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (17 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: all install test integration-test integration-profile
TAG=$(shell git describe --abbrev=0 --tags 2>&1)
TS=$(shell date '+%b %d %Y %T')
all: help
# Self documenting makefile. Double hashes signify help comments.
help: ## Show this help
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
install: ## Installs tables-to-go. Requires `git` to be installed.
@go install -mod=vendor -ldflags \
"-X 'main.buildTimestamp=$(TS)' -X 'main.versionTag=$(TAG)'" \
.
test: ## Runs unit tests with race flag enabled
go test -mod=vendor -race ./...
integration-test: ## Runs integration tests
go test -mod=vendor -tags=integration ./internal/integration_tests/...
integration-profile: ## Runs opt-in profiling integration tests
go test -mod=vendor -tags=integration,profiling ./internal/integration_tests/... -run '^TestIntegrationProfiling$'